Class: Effective::CustomersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Effective::CustomersController
- Includes:
- CrudController
- Defined in:
- app/controllers/effective/customers_controller.rb
Instance Method Summary collapse
-
#customer_params ⇒ Object
StrongParameters.
- #resource ⇒ Object
Instance Method Details
#customer_params ⇒ Object
StrongParameters
16 17 18 |
# File 'app/controllers/effective/customers_controller.rb', line 16 def customer_params params.require(:effective_subscripter).permit(:stripe_token) end |
#resource ⇒ Object
10 11 12 13 |
# File 'app/controllers/effective/customers_controller.rb', line 10 def resource @customer = Effective::Customer.where(user: current_user).first! @subscripter ||= Effective::Subscripter.new(customer: @customer, current_user: current_user) end |