shop_detail func: update in base
This commit is contained in:
@@ -4,8 +4,6 @@ class HomeController < ApplicationController
|
||||
|
||||
before_action :check_user, only: :dashboard
|
||||
|
||||
helper_method :shop_detail
|
||||
|
||||
# Special check for only dashboard
|
||||
def check_user
|
||||
if current_user.nil?
|
||||
@@ -251,9 +249,4 @@ class HomeController < ApplicationController
|
||||
|
||||
return from, to, from_time, to_time
|
||||
end
|
||||
|
||||
#Shop Name in Navbor
|
||||
def shop_detail
|
||||
@shop = Shop.first
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user