Sha256: a8811b67afe3359ba2a4ccc1c5e06ce353b4efd860200ae428eba2921ce7ddd3

Contents?: true

Size: 413 Bytes

Versions: 4

Compression:

Stored size: 413 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
    
    rake_tasks do
      Fume.load_tasks
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fume-0.8.1a lib/fume/railtie.rb
fume-0.8.0 lib/fume/railtie.rb
fume-0.8.0b lib/fume/railtie.rb
fume-0.8.0a lib/fume/railtie.rb