Sha256: 94defee7fc7fc858dc70f02f28616912fb616ab7e96593f29f43b38ab1502333

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

require "sortables/version"
require "sortables/sortable"

module Sortables
  module ClassMethods
    def sortable
      send :include, Sortables::Sortable
    end
  end

  if defined?(ActiveRecord::Base)
    ActiveRecord::Base.extend Sortables::ClassMethods
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sortables-0.0.2 lib/sortables.rb
sortables-0.0.1 lib/sortables.rb