Sha256: 2351e2499078397a185c27f638ac9008b57daa199dd68c26dd74b72d61065db8

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

module ActiveRemote
  module Cached
    class Railtie < Rails::Railtie
      initializer "active_remote-cached.initialize_cache" do |app|
        ActiveRemote::Cached.cache(Rails.cache)
        ActiveRemote::Cached.default_options(:race_condition_ttl => 5.seconds)
      end

      ActiveSupport.on_load(:active_remote) do
        include ActiveRemote::Cached
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_remote-cached-0.0.7 lib/active_remote/cached/railtie.rb