Module: SnFoil::Policy
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/snfoil/policy.rb,
lib/snfoil/policy/version.rb
Overview
ActiveSupport::Concern for adding SnFoil Policy functionality to policy file
Defined Under Namespace
Constant Summary collapse
- VERSION =
'1.1.1'
Instance Attribute Summary collapse
- #entity ⇒ Object readonly
- #options ⇒ Object
- #record ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#entity ⇒ Object (readonly)
55 56 57 |
# File 'lib/snfoil/policy.rb', line 55 def entity @entity end |
#options ⇒ Object
56 57 58 |
# File 'lib/snfoil/policy.rb', line 56 def @options end |
#record ⇒ Object (readonly)
55 56 57 |
# File 'lib/snfoil/policy.rb', line 55 def record @record end |
Instance Method Details
#initialize(entity, record, **options) ⇒ Object
58 59 60 61 62 |
# File 'lib/snfoil/policy.rb', line 58 def initialize(entity, record, **) @record = record @entity = entity @options = end |