Sha256: eceeae41c01c3f5d3a7b36a8804f1af994d41803820858ea42c877e45d8ef3e9
Contents?: true
Size: 466 Bytes
Versions: 13
Compression:
Stored size: 466 Bytes
Contents
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 before_action :configure_permitted_parameters, if: :devise_controller? protected def configure_permitted_parameters devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:first_name, :last_name, :email, :password, :password_confirmation) } end end
Version data entries
13 entries across 13 versions & 1 rubygems