Sha256: feed838110804b81ea52c4f67c7d22c09c13a5a712ed1afd29089b4e364ba1b4

Contents?: true

Size: 251 Bytes

Versions: 15

Compression:

Stored size: 251 Bytes

Contents

require 'attached'
require 'rails'

module Attached
  class Railtie < Rails::Railtie
    initializer 'attached.initialize' do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.send :include, Attached
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
attached-0.1.5 lib/attached/railtie.rb
attached-0.1.4 lib/attached/railtie.rb
attached-0.1.3 lib/attached/railtie.rb
attached-0.1.2 lib/attached/railtie.rb
attached-0.1.1 lib/attached/railtie.rb
attached-0.1.0 lib/attached/railtie.rb
attached-0.0.9 lib/attached/railtie.rb
attached-0.0.8 lib/attached/railtie.rb
attached-0.0.7 lib/attached/railtie.rb
attached-0.0.6 lib/attached/railtie.rb
attached-0.0.5 lib/attached/railtie.rb
attached-0.0.4 lib/attached/railtie.rb
attached-0.0.3 lib/attached/railtie.rb
attached-0.0.2 lib/attached/railtie.rb
attached-0.0.1 lib/attached/railtie.rb