Sha256: ecb60827ec9c3b2e7124b0b83a039adc8e2eb280cc3a951832401c9206fed0f4
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
# Simple configuration storage for RailsAppcache module RailsAppcache def self.config @config ||= Config.new end class Config # Check whether appcache caching is enabled; default off in development, on elsewhere def perform_caching? @perform_caching || !Rails.env.development? end # Turn caching on or off def perform_caching=(val) @perform_caching = !!val end # Return the current manifests version string, falling back to the Rails asset version string def version @appcache_version || Rails.application.config.assets.version end # Assign an explicit version to our manifests def version=(value) @appcache_version = value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_appcache-0.0.5 | lib/rails_appcache/config.rb |