Sha256: 9207a40c6a3947eeccfb3ca709157adecd2341e1146a5d976060cbf95dcf30cd

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module MagickColumns
  class Railtie < Rails::Railtie
    initializer 'magick_columns' do
      ActiveSupport.on_load :active_record do
        require 'magick_columns/active_record'
      end
      
      self.class.add_locale_path config
    end
    
    def self.add_locale_path(config)
      config.i18n.railties_load_path.unshift(*MagickColumns::I18n.load_path)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
magick_columns-0.0.4 lib/magick_columns/railtie.rb
magick_columns-0.0.3 lib/magick_columns/railtie.rb