Sha256: 40b1e9140211c20714b1ca08eec7e45b38306b7483846c8bd99fa8de9b038024

Contents?: true

Size: 355 Bytes

Versions: 3

Compression:

Stored size: 355 Bytes

Contents

require "rails/railtie"

module Fume
  class Railtie < ::Rails::Railtie
    initializer 'fume.initialize', :after => :after_initialize do |app|
      Fume.constants.each do |name|
        ext_module = Fume.const_get(name)
        
        if ext_module.respond_to?(:try_enable)
          ext_module.try_enable(app)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fume-0.7.2 lib/fume/railtie.rb
fume-0.7.1 lib/fume/railtie.rb
fume-0.7.0 lib/fume/railtie.rb