Sha256: 598438b603dfbbb30a981c827386e06d76fbd6af2e1f52b32504ae105c331748

Contents?: true

Size: 414 Bytes

Versions: 20

Compression:

Stored size: 414 Bytes

Contents

require 'attached'
require 'rails'

module Attached
  class Railtie < Rails::Railtie
    
    rake_tasks do
      load 'tasks/attached.rake'
    end
    
    initializer 'attached.initialize' do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.send :include, Attached
        ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Attached::Definition
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
attached-0.5.2 lib/attached/railtie.rb
attached-0.5.1 lib/attached/railtie.rb
attached-0.5.0 lib/attached/railtie.rb
attached-0.4.9 lib/attached/railtie.rb
attached-0.4.8 lib/attached/railtie.rb
attached-0.4.7 lib/attached/railtie.rb
attached-0.4.6 lib/attached/railtie.rb
attached-0.4.5 lib/attached/railtie.rb
attached-0.4.4 lib/attached/railtie.rb
attached-0.4.3 lib/attached/railtie.rb
attached-0.4.2 lib/attached/railtie.rb
attached-0.4.1 lib/attached/railtie.rb
attached-0.4.0 lib/attached/railtie.rb
attached-0.3.9 lib/attached/railtie.rb
attached-0.3.8 lib/attached/railtie.rb
attached-0.3.7 lib/attached/railtie.rb
attached-0.3.6 lib/attached/railtie.rb
attached-0.3.5 lib/attached/railtie.rb
attached-0.3.4 lib/attached/railtie.rb
attached-0.3.3 lib/attached/railtie.rb