app/controllers/mtdevise/application_controller.rb in mtdevise-3.5.5 vs app/controllers/mtdevise/application_controller.rb in mtdevise-3.5.7
- old
+ new
@@ -1,15 +1,10 @@
module Mtdevise
- # class ApplicationController < ActionController::Base
class ApplicationController < ::ApplicationController
- # Load Helpers
- helper Phctitleseo::Engine.helpers
- helper Phcnotifi::Engine.helpers
-
- # Secirity and Filters
+ # Secirity and Filters
protect_from_forgery with: :null_session
before_action :check_subdomain
# Omniauth
def after_sign_in_path_for(resource)
@@ -24,9 +19,13 @@
def current_account?(account)
account == current_account
end
helper_method :current_account
+
+ # Load Helpers
+ helper Phctitleseo::Engine.helpers
+ helper Phcnotifi::Engine.helpers
private
# Logged in redirect
def redirect_logged_in_users_to_account_page