Module: Auth::Shopping::Discounts::DiscountsHelper
- Defined in:
- app/helpers/auth/shopping/discounts/discounts_helper.rb
Instance Method Summary collapse
-
#discount_path(discount) ⇒ Object
(PUT/PATCH/GET) - individual discount.
-
#discounts_path ⇒ Object
/discounts (GET - all discounts /CREATE - individual discount).
-
#edit_discount_path(options = {}) ⇒ Object
/shopping/discounts/:id/edit.
-
#new_discount_path(options = {}) ⇒ Object
get /new.
Instance Method Details
#discount_path(discount) ⇒ Object
(PUT/PATCH/GET) - individual discount
19 20 21 22 |
# File 'app/helpers/auth/shopping/discounts/discounts_helper.rb', line 19 def discount_path(discount) main_app.send(Auth::OmniAuth::Path.show_or_update_or_delete_path(Auth.configuration.discount_class),discount) end |
#discounts_path ⇒ Object
/discounts (GET - all discounts /CREATE - individual discount)
26 27 28 |
# File 'app/helpers/auth/shopping/discounts/discounts_helper.rb', line 26 def discounts_path main_app.send(Auth::OmniAuth::Path.create_or_index_path(Auth.configuration.discount_class)) end |
#edit_discount_path(options = {}) ⇒ Object
/shopping/discounts/:id/edit
31 32 33 34 35 |
# File 'app/helpers/auth/shopping/discounts/discounts_helper.rb', line 31 def edit_discount_path( = {}) main_app.send(Auth::OmniAuth::Path.edit_path(Auth.configuration.discount_class),) end |
#new_discount_path(options = {}) ⇒ Object
get /new
12 13 14 |
# File 'app/helpers/auth/shopping/discounts/discounts_helper.rb', line 12 def new_discount_path(={}) main_app.send(Auth::OmniAuth::Path.new_path(Auth.configuration.discount_class),) end |