15 lines
734 B
Ruby
15 lines
734 B
Ruby
require "application_responder"
|
|
|
|
class ApplicationController < ActionController::Base
|
|
self.responder = ApplicationResponder
|
|
respond_to :html, :xml, :json, :js
|
|
before_action :authenticate_user!
|
|
skip_before_action :authenticate_user!, only: [:index, :show, :top]
|
|
before_action :configure_permitted_parameters, if: :devise_controller?
|
|
protected
|
|
def configure_permitted_parameters
|
|
devise_parameter_sanitizer.permit(:sign_up, keys: [:email, :password, :password_confirmation, :address_attributes])
|
|
devise_parameter_sanitizer.permit(:account_update, keys: [:email, :password, :password_confirmation, :current_password, address_attributes: [:state, :city, :address, :address2, :zipcode, :receiver, :phone] ])
|
|
end
|
|
end
|