Sha256: 153b2753a2c0e0b2ff9959999d3e56c9a7d4bcc8c2afe7996a5a923236f864e2

Contents?: true

Size: 228 Bytes

Versions: 6

Compression:

Stored size: 228 Bytes

Contents

if ENV['RAILS_ENV'] == 'cucumber'
  class ActionController::Dispatcher
    def refresh_stubs
      CrossStub.refresh :file => File.join(RAILS_ROOT, 'tmp', 'cross-stub.cache')
    end
    before_dispatch :refresh_stubs
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cross-stub-0.1.4 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb
cross-stub-0.1.3.1 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb
cross-stub-0.1.3 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb
cross-stub-0.1.2 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb
cross-stub-0.1.1 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb
cross-stub-0.1.0 rails_generators/cross_stub/templates/config/initializers/cross-stub.rb