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