summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-09-17 19:51:27 -0600
committermo khan <mo@mokhan.ca>2014-09-17 19:51:27 -0600
commit63f4f0341b3741a408be057d69957dde3ef4cc73 (patch)
treee94bd10705c5d7997ff8adea6279117b3242e11e /app/controllers/application_controller.rb
parentced3ca5ecb44e0c01527af2dbb4904c01bfb49d1 (diff)
get controller specs passing.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index f6abcd89..446b0d12 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
before_action :load_header
- before_action :configure_permitted_parameters, if: :devise_controller?
+ #before_action :configure_permitted_parameters, if: :devise_controller?
#before_action :extend_session_cookie
helper_method :current_user, :user_signed_in?
rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
@@ -20,11 +20,11 @@ class ApplicationController < ActionController::Base
current_user
end
- protected
+ #protected
- def configure_permitted_parameters
- devise_parameter_sanitizer.for(:user) { |u| u.permit(:name, :city, :email) }
- end
+ #def configure_permitted_parameters
+ #devise_parameter_sanitizer.for(:user) { |u| u.permit(:name, :city, :email) }
+ #end
private