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
#env, #initialize, #section_for, #to_h
Methods inherited from Configuration::Node
#add_header, #expects, #messages, render_with, #set_headers!, #to_h
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
7 8 9 |
# File 'lib/about_page/request_environment.rb', line 7 def preflight request @environment = request.env end |