Class: Consent::Reloader

Inherits:
Object
  • Object
show all
Defined in:
lib/consent/reloader.rb

Overview

Rails file reloader to detect permission changes and apply them to consent

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathsObject (readonly)

Returns the value of attribute paths.



6
7
8
# File 'lib/consent/reloader.rb', line 6

def paths
  @paths
end