Sha256: 6ee4a86587cebf4776f4602a714d4eefa3a62fcf87ed17ee0e6367e9110aa9b2

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 Bytes

Contents

module RailsAppcache

  def self.config
    @config ||= Config.new
  end

  class Config
    # Default to off outside of production
    def perform_caching?
      @perform_caching || !Rails.env.development?
    end

    def perform_caching=(val)
      @perform_caching = !!val
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_appcache-0.0.4 lib/rails_appcache/config.rb