Class: StrongRoutes::Config

Inherits:
Hash
  • Object
show all
Extended by:
Accessorable
Defined in:
lib/strong_routes/config.rb

Instance Method Summary collapse

Methods included from Accessorable

hash_accessor

Constructor Details

#initializeConfig

Returns a new instance of Config.



44
45
46
47
48
49
# File 'lib/strong_routes/config.rb', line 44

def initialize(*)
  super

  self[:enabled] = true if self[:enabled].nil?
  self[:message] = "Resource Not Found" if self[:message].nil?
end