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