Sha256: 22da792c9b2437b797502c8ea53f9dfd34eb898c8c1dd751a159e687eea40e12

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

require 'rubber'
require 'rails'

module Rubber
  class Railtie < Rails::Railtie
    config.before_configuration do
      Rubber::initialize(Rails.root, Rails.env)
    end
  end
end

if defined?(Spring)
  Spring.after_fork do
    Rubber.reset
    Rubber::initialize(Rails.root, Rails.env)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubber-3.2.2 lib/rubber/railtie.rb
rubber-3.2.1 lib/rubber/railtie.rb
rubber-3.2.0 lib/rubber/railtie.rb
rubber-3.1.0 lib/rubber/railtie.rb
rubber-3.0.1 lib/rubber/railtie.rb