Sha256: af99767c6bdb1436e443ee6c9aa80a24b8cccf24f82f862bbaaf0db42e0aa10c

Contents?: true

Size: 219 Bytes

Versions: 6

Compression:

Stored size: 219 Bytes

Contents

require 'active_sorting/model'

module ActiveSorting
  class Engine < Rails::Engine # :nodoc:
    ActiveSupport.on_load(:active_record) do
      ActiveRecord::Base.send(:include, ActiveSorting::Model)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activesorting-0.8.3 lib/active_sorting/engine.rb
activesorting-0.8.2 lib/active_sorting/engine.rb
activesorting-0.8.1 lib/active_sorting/engine.rb
activesorting-0.8.0 lib/active_sorting/engine.rb
activesorting-0.7.1 lib/active_sorting/engine.rb
activesorting-0.7.0 lib/active_sorting/engine.rb