Sha256: ef2b6f55b1a4e992298b5f04d48a72edd1ebbbe6b6f2f408dbbf25e6e320c794

Contents?: true

Size: 325 Bytes

Versions: 17

Compression:

Stored size: 325 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
      end
    end
    
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
attached-0.3.2 lib/attached/railtie.rb
attached-0.3.1 lib/attached/railtie.rb
attached-0.3.0 lib/attached/railtie.rb
attached-0.2.9 lib/attached/railtie.rb
attached-0.2.8 lib/attached/railtie.rb
attached-0.2.7 lib/attached/railtie.rb
attached-0.2.6 lib/attached/railtie.rb
attached-0.2.5 lib/attached/railtie.rb
attached-0.2.4 lib/attached/railtie.rb
attached-0.2.3 lib/attached/railtie.rb
attached-0.2.2 lib/attached/railtie.rb
attached-0.2.1 lib/attached/railtie.rb
attached-0.2.0 lib/attached/railtie.rb
attached-0.1.9 lib/attached/railtie.rb
attached-0.1.8 lib/attached/railtie.rb
attached-0.1.7 lib/attached/railtie.rb
attached-0.1.6 lib/attached/railtie.rb