Module: Resourcelogic::Actions
- Included in:
- ActionController::Base
- Defined in:
- lib/resourcelogic/actions.rb
Defined Under Namespace
Modules: Methods
Constant Summary collapse
- ACTIONS =
[:index, :show, :new_action, :create, :edit, :update, :destroy].freeze
- FAILABLE_ACTIONS =
ACTIONS - [:index, :new_action, :edit, :destroy].freeze
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/resourcelogic/actions.rb', line 6 def self.included(klass) klass.class_eval do ACTIONS.each do |action| class_scoping_reader action, FAILABLE_ACTIONS.include?(action) ? FailableActionOptions.new : ActionOptions.new end add_acts_as_resource_module(Methods) end end |