Class: ItsSwiss::Configuration
- Inherits:
-
Object
- Object
- ItsSwiss::Configuration
- Defined in:
- lib/its_swiss.rb
Instance Attribute Summary collapse
-
#specimen ⇒ Object
writeonly
The specimen is documentation and a regression fixture, not a page an application serves.
Instance Method Summary collapse
Instance Attribute Details
#specimen=(value) ⇒ Object (writeonly)
The specimen is documentation and a regression fixture, not a page an application serves. It stays off unless the environment asks for it, so a route left mounted by accident cannot answer in production.
42 43 44 |
# File 'lib/its_swiss.rb', line 42 def specimen=(value) @specimen = value end |
Instance Method Details
#specimen? ⇒ Boolean
44 |
# File 'lib/its_swiss.rb', line 44 def specimen? = @specimen.nil? ? !!Rails.env.local? : @specimen |