Class: Workarea::Admin::PricingDiscountRedemptionsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Admin::PricingDiscountRedemptionsController
- Defined in:
- app/controllers/workarea/admin/pricing_discount_redemptions_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_user, #find_sort, #wrap_in_view_model, wrap_in_view_model
Methods included from Publishing
#allow_publishing!, #allow_publishing?, #set_publishing_options
Methods included from Visiting
Instance Method Details
#index ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/workarea/admin/pricing_discount_redemptions_controller.rb', line 6 def index model = Pricing::Discount.find(params[:pricing_discount_id]) @discount = DiscountViewModel.wrap(model, ) @redemptions = model.redemptions.recent.page(params[:page]) end |