Class: Spree::Billing::AdjustmentsController
- Inherits:
-
BaseController
- Object
- Admin::ResourceController
- BaseController
- Spree::Billing::AdjustmentsController
- Includes:
- OrderParentsConcern
- Defined in:
- app/controllers/spree/billing/adjustments_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#current_vendor, #default_url_options, #edit_object_url, #handle_unauthorized_vendor, #page, #per_page, #required_vendor_user!, #set_locale, #switch_vendor, #vendors
Methods included from SpreeCmCommissioner::Billing::RoleAuthorization
#auth_action, #auth_entry, #auth_user, #authorize!, #authorize?, #authorize_admin, #authorize_role!, #redirect_unauthorized_access
Instance Method Details
#index ⇒ Object
21 22 23 |
# File 'app/controllers/spree/billing/adjustments_controller.rb', line 21 def index @adjustments = @order.all_adjustments.eligible.order(created_at: :asc) end |
#set_payable ⇒ Object
17 18 19 |
# File 'app/controllers/spree/billing/adjustments_controller.rb', line 17 def set_payable @adjustment.payable = spree_current_user end |