Class: RailsAppcache::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_appcache/config.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/rails_appcache/config.rb', line 10

def perform_caching?
  @perform_caching || !Rails.env.development?
end