clarion/app/controllers/application_controller.rb

15 lines
609 B
Ruby
Raw Normal View History

2014-07-28 12:34:18 +03:00
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
2014-08-31 14:57:34 +03:00
before_filter :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
devise_parameter_sanitizer.for(:account_update) do |u|
u.permit(:email, :password, :password_confirmation, :current_password, speaker_profile_attributes: [:first_name, :last_name, :public_email, :organisation, :github, :twitter, :mobile_phone, :biography])
end
end
2014-07-28 12:34:18 +03:00
end