Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/ecko/plugins/stripe/rails/routes.rb
Instance Method Summary collapse
-
#stripe_callbacks(*resources) ⇒ Object
Sets all the stripe routes specification.
Instance Method Details
#stripe_callbacks(*resources) ⇒ Object
Sets all the stripe routes specification
8 9 10 11 12 13 |
# File 'lib/ecko/plugins/stripe/rails/routes.rb', line 8 def stripe_callbacks(*resources) return if resources.first.nil? get :stripe_success, to: "#{resources.first}#success", as: :stripe_success_callback get :stripe_cancel, to: "#{resources.first}#cancel", as: :stripe_cancel_callback end |