Module: Walruz::Utils::PolicyCompositionHelper
- Defined in:
- lib/walruz/utils.rb
Overview
:nodoc: all
Instance Method Summary collapse
- #params ⇒ Object
- #policies ⇒ Object
-
#policies=(policies) ⇒ Object
– NOTE: Not using cattr_accessor to avoid dependencies with ActiveSupport.
- #policy ⇒ Object
- #policy=(policy) ⇒ Object
- #set_params(params = {}) ⇒ Object
Instance Method Details
#params ⇒ Object
65 66 67 |
# File 'lib/walruz/utils.rb', line 65 def params @params end |
#policies ⇒ Object
48 49 50 |
# File 'lib/walruz/utils.rb', line 48 def policies @policies end |
#policies=(policies) ⇒ Object
– NOTE: Not using cattr_accessor to avoid dependencies with ActiveSupport
44 45 46 |
# File 'lib/walruz/utils.rb', line 44 def policies=(policies) @policies = policies end |
#policy ⇒ Object
56 57 58 |
# File 'lib/walruz/utils.rb', line 56 def policy @policy end |
#policy=(policy) ⇒ Object
52 53 54 |
# File 'lib/walruz/utils.rb', line 52 def policy=(policy) @policy = policy end |
#set_params(params = {}) ⇒ Object
60 61 62 63 |
# File 'lib/walruz/utils.rb', line 60 def set_params(params = {}) @params ||= {} @params.merge!(params) end |