Sha256: b9a3042182f9072fd56ac62798be59a3953607ccd76ff9a3cfa3d71a129edc2b

Contents?: true

Size: 448 Bytes

Versions: 16

Compression:

Stored size: 448 Bytes

Contents

require 'acts_as_list/active_record/acts/list'

module ActsAsList
  if defined?(Rails::Railtie)
    class Railtie < Rails::Railtie
      initializer 'acts_as_list.insert_into_active_record' do
        ActiveSupport.on_load :active_record do
          ActiveRecord::Base.send(:include, ActiveRecord::Acts::List)
        end
      end
    end
  else
    ActiveRecord::Base.send(:include, ActiveRecord::Acts::List) if defined?(ActiveRecord)
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
acts_as_list-0.8.2 lib/acts_as_list.rb
acts_as_list-0.8.1 lib/acts_as_list.rb
acts_as_list-0.8.0 lib/acts_as_list.rb
acts_as_list-0.7.7 lib/acts_as_list.rb
acts_as_list-0.7.6 lib/acts_as_list.rb
acts_as_list-0.7.5 lib/acts_as_list.rb
acts_as_list-0.7.4 lib/acts_as_list.rb
suhovius-acts_as_list-0.7.4.s lib/acts_as_list.rb
suhovius-acts_as_list-0.7.3.s lib/acts_as_list.rb
suhovius-acts_as_list-0.7.2.s lib/acts_as_list.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/acts_as_list-0.7.2/lib/acts_as_list.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/acts_as_list-0.7.2/lib/acts_as_list.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/acts_as_list-0.7.2/lib/acts_as_list.rb
acts_as_list-0.7.2 lib/acts_as_list.rb
acts_as_list-0.7.1 lib/acts_as_list.rb
acts_as_list-0.7.0 lib/acts_as_list.rb