Sha256: 1d69c26c6501ad200ac9be83b183f0ae503b2537dd20904811c19b13873c38e7

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

module Workarea
  decorate Admin::PricingDiscountsController, with: :shipping_message do
    def message
      discount = Pricing::Discount.find(params[:id])
      @discount = Admin::DiscountViewModel.wrap(discount, view_model_options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-shipping_message-1.2.1 app/controllers/workarea/admin/pricing_discounts_controller.decorator
workarea-shipping_message-1.2.0 app/controllers/workarea/admin/pricing_discounts_controller.decorator