Sha256: d0a82db997471b742d81d939b0661921db6fd5d5bf35203c08a3cbecbfac5fe4

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

module Basquiat
  class Railtie < ::Rails::Railtie
    initializer 'load_basquiat_configuration' do
      ENV['BASQUIAT_ENV'] = Rails.env
      Basquiat.configure do |config|
        config.config_file = Rails.root + 'config/basquiat.yml'
      end
    end

    config.after_initialize do
      Basquiat.configuration.reload_classes
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
basquiat-1.3.0.pre.1 lib/basquiat/rails/railtie.rb
basquiat-1.2.0 lib/basquiat/rails/railtie.rb
basquiat-1.1.1 lib/basquiat/rails/railtie.rb