Sha256: 6142261a47b40e1362b571f015cadb50a50bc750780e2394cb3b4ee98299ec39

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

module Admin
  class StampsController < ApplicationController
    before_action(:authenticate_user!) if defined?(Devise)
    before_action { EffectiveResources.authorize!(self, :admin, :effective_products) }

    include Effective::CrudController

    # Admin can go straight to submitted
    submit :mark_as_submitted, 'Save'
    submit :mark_paid, 'Save and Mark Paid', redirect: :index

    on :mark_as_submitted, redirect: :index
    on :mark_as_issued, redirect: :index

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_products-0.3.9 app/controllers/admin/stamps_controller.rb
effective_products-0.3.8 app/controllers/admin/stamps_controller.rb
effective_products-0.3.7 app/controllers/admin/stamps_controller.rb
effective_products-0.3.6 app/controllers/admin/stamps_controller.rb
effective_products-0.3.5 app/controllers/admin/stamps_controller.rb
effective_products-0.3.4 app/controllers/admin/stamps_controller.rb
effective_products-0.3.3 app/controllers/admin/stamps_controller.rb
effective_products-0.3.2 app/controllers/admin/stamps_controller.rb
effective_products-0.3.1 app/controllers/admin/stamps_controller.rb
effective_products-0.3.0 app/controllers/admin/stamps_controller.rb
effective_products-0.2.1 app/controllers/admin/stamps_controller.rb
effective_products-0.2.0 app/controllers/admin/stamps_controller.rb