Commit d6f8e05b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix passign args to original authenticate_user!

parent 4c305d4d
...@@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base ...@@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base
end end
end end
def authenticate_user! def authenticate_user!(*args)
# If user is not signe-in and tries to access root_path - redirect him to landing page # If user is not signe-in and tries to access root_path - redirect him to landing page
if current_application_settings.home_page_url.present? if current_application_settings.home_page_url.present?
if current_user.nil? && controller_name == 'dashboard' && action_name == 'show' if current_user.nil? && controller_name == 'dashboard' && action_name == 'show'
...@@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base ...@@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
end end
end end
super super(*args)
end end
def log_exception(exception) def log_exception(exception)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment