Class: StrongRoutes::Config
- Inherits:
-
Hash
- Object
- Hash
- StrongRoutes::Config
- Extended by:
- Accessorable
- Defined in:
- lib/strong_routes/config.rb
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Methods included from Accessorable
Constructor Details
#initialize ⇒ Config
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 |