Sha256: 36215d5a0a0fa2969883e75fd3b7b5f1017b2c49ef5bd149a4f4d7fb5542b19b

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

require 'rails'
require 'feature-rich'
module FeatureRich
  class Railtie < Rails::Railtie

    config.feature_rich = FeatureRich::Engine.config
    config.feature_rich.config_file = Rails.root.join('config/feature-rich.rb').to_s

    initializer "feature-rich.after_initialize" do |app|
      FeatureRich::Engine.run do
        eval(File.read(app.config.feature_rich.config_file))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feature-rich-0.2.0 lib/feature-rich/railtie.rb