Sha256: 799cabc599cbe739f3bd67d916af86797962957f32aef3549eee07e30fceb21f

Contents?: true

Size: 382 Bytes

Versions: 8

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

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

8 entries across 8 versions & 1 rubygems

Version Path
basquiat-1.6.0 lib/basquiat/rails/railtie.rb
basquiat-1.5.2 lib/basquiat/rails/railtie.rb
basquiat-1.5.1 lib/basquiat/rails/railtie.rb
basquiat-1.5.0 lib/basquiat/rails/railtie.rb
basquiat-1.4.0 lib/basquiat/rails/railtie.rb
basquiat-1.3.6 lib/basquiat/rails/railtie.rb
basquiat-1.3.5 lib/basquiat/rails/railtie.rb
basquiat-1.3.4 lib/basquiat/rails/railtie.rb