Class: AboutPage::RequestEnvironment
- Inherits:
-
Environment
- Object
- Configuration::Node
- Environment
- AboutPage::RequestEnvironment
- Defined in:
- lib/about_page/request_environment.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
Returns the value of attribute environment.
Attributes inherited from Environment
Instance Method Summary collapse
Methods inherited from Environment
#initialize, #section_for, #to_h
Methods inherited from Configuration::Node
#add_header, #expects, #messages, #set_headers!
Constructor Details
This class inherits a constructor from AboutPage::Environment
Instance Attribute Details
#environment ⇒ Object
Returns the value of attribute environment.
3 4 5 |
# File 'lib/about_page/request_environment.rb', line 3 def environment @environment end |
Instance Method Details
#preflight(request) ⇒ Object
5 6 7 |
# File 'lib/about_page/request_environment.rb', line 5 def preflight request @environment = request.env end |