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) ⇒ Reloader

Returns a new instance of Reloader.



11
12
13
# File 'lib/consent/reloader.rb', line 11

def initialize(default_path)
  @paths = [default_path]
end

Instance Attribute Details

#pathsObject (readonly)

Returns the value of attribute paths.



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

def paths
  @paths
end