Sha256: fd59db12ddaec3d6ce7aa163dcbb02fd1db644c5e3e58781256ab866ac820c00

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

module Attachs
  class Railtie < Rails::Railtie

    initializer 'attachs.extensions' do
      ::ActiveRecord::Base.include(
        Attachs::Extensions::ActiveRecord::Base,
        Attachs::Extensions::ActiveRecord::Validations
      )
    end

    initializer 'attachs.locales' do
      I18n.load_path += Dir[File.expand_path('../locales/*.yml', __FILE__)]
    end

    rake_tasks do
      load 'tasks/attachs.rake'
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attachs-4.0.0.1 lib/attachs/railtie.rb
attachs-4.0.0.0 lib/attachs/railtie.rb