Module: Lockdown::Frameworks::Rails::Environment
- Defined in:
- lib/lockdown/frameworks/rails.rb
Overview
class block
Instance Method Summary collapse
- #caching? ⇒ Boolean
-
#controller_parent ⇒ Object
cache_classes is true in production and testing, need to modify the ApplicationController.
- #project_root ⇒ Object
- #view_helper ⇒ Object
Instance Method Details
#caching? ⇒ Boolean
71 72 73 |
# File 'lib/lockdown/frameworks/rails.rb', line 71 def caching? ::Rails.configuration.cache_classes end |
#controller_parent ⇒ Object
cache_classes is true in production and testing, need to modify the ApplicationController
63 64 65 66 67 68 69 |
# File 'lib/lockdown/frameworks/rails.rb', line 63 def controller_parent if caching? ApplicationController else ActionController::Base end end |
#project_root ⇒ Object
53 54 55 |
# File 'lib/lockdown/frameworks/rails.rb', line 53 def project_root ::RAILS_ROOT end |
#view_helper ⇒ Object
57 58 59 |
# File 'lib/lockdown/frameworks/rails.rb', line 57 def view_helper ::ActionView::Base end |