Module: ResourcePolicy::Policy
- Defined in:
- lib/resource_policy/policy.rb,
lib/resource_policy/policy/actions_policy.rb,
lib/resource_policy/policy/merge_policies.rb,
lib/resource_policy/policy/attributes_policy.rb,
lib/resource_policy/policy/policy_configuration.rb,
lib/resource_policy/policy/action_policy_configuration.rb,
lib/resource_policy/policy/actions_policy/action_policy.rb,
lib/resource_policy/policy/attributes_policy/attribute_policy.rb,
lib/resource_policy/policy/actions_policy/actions_policy_model.rb,
lib/resource_policy/policy/attributes_policy/attribute_configuration.rb,
lib/resource_policy/policy/attributes_policy/attributes_policy_model.rb
Overview
Gives policy configuration methods for any policy class
Defined Under Namespace
Modules: ActionsPolicy, AttributesPolicy, ClassMethods Classes: ActionPolicyConfiguration, MergePolicies, PolicyConfiguration
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
25 26 27 28 29 |
# File 'lib/resource_policy/policy.rb', line 25 def self.included(receiver) receiver.send(:extend, ClassMethods) receiver.send(:include, ::ResourcePolicy::Policy::ActionsPolicy) receiver.send(:include, ::ResourcePolicy::Policy::AttributesPolicy) end |