Sha256: 6705583079c1efab191ba971b1c32edfad96721e33610867f5ecdf63938b4266

Contents?: true

Size: 830 Bytes

Versions: 1

Compression:

Stored size: 830 Bytes

Contents

if Rails.env.test?
  ActionDispatch::Callbacks.before do
    # /////////////////////////////////////////////////////////////////////////////////
    # NOTE: By default, we use file-based cache store for cross-stub. Alternatively,
    # u may wanna try out the other cache stores. Adding new cache store support is
    # super easy, w.r.t actual implementation & testing, just drop me a note at
    # http://github.com/ngty/cross-stub & i'll do it for u, of course FOC lah !!
    # /////////////////////////////////////////////////////////////////////////////////
    #CrossStub.refresh :redis => 'localhost:6379/xstub.cache' # requires *redis* gem
    #CrossStub.refresh :memcache => 'localhost:11211/xstub.cache' # requires *memcache-client* gem
    CrossStub.refresh :file => Rails.root.join('tmp', 'crossstub.cache')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cross-stub-0.2.4 lib/generators/cross_stub/templates/config/initializers/cross-stub.rb