Class: RailsAppcache::Config
- Inherits:
-
Object
- Object
- RailsAppcache::Config
- Defined in:
- lib/rails_appcache/config.rb
Instance Method Summary collapse
- #perform_caching=(val) ⇒ Object
-
#perform_caching? ⇒ Boolean
Default to off outside of production.
Instance Method Details
#perform_caching=(val) ⇒ Object
14 15 16 |
# File 'lib/rails_appcache/config.rb', line 14 def perform_caching=(val) @perform_caching = !!val end |
#perform_caching? ⇒ Boolean
Default to off outside of production
10 11 12 |
# File 'lib/rails_appcache/config.rb', line 10 def perform_caching? @perform_caching || !Rails.env.development? end |