Class: Consent::Reloader
- Inherits:
-
Object
- Object
- Consent::Reloader
- Defined in:
- lib/consent/reloader.rb
Overview
Rails file reloader to detect permission changes and apply them to consent
Instance Attribute Summary collapse
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(default_path, mechanism) ⇒ Reloader
constructor
A new instance of Reloader.
Constructor Details
#initialize(default_path, mechanism) ⇒ Reloader
Returns a new instance of Reloader.
9 10 11 12 |
# File 'lib/consent/reloader.rb', line 9 def initialize(default_path, mechanism) @paths = [default_path] @mechanism = mechanism end |
Instance Attribute Details
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
6 7 8 |
# File 'lib/consent/reloader.rb', line 6 def paths @paths end |