Sha256: 79f5321288cd9b26f276002edfd28c90ad57c1fcce6dabba88115a64bd50b5d9

Contents?: true

Size: 410 Bytes

Versions: 3

Compression:

Stored size: 410 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

3 entries across 3 versions & 1 rubygems

Version Path
attached-1.0.7 lib/attached/railtie.rb
attached-1.0.6 lib/attached/railtie.rb
attached-1.0.5 lib/attached/railtie.rb