lib/mongoid/orderable.rb in mongoid_orderable-5.0.0 vs lib/mongoid/orderable.rb in mongoid_orderable-5.1.0
- old
+ new
@@ -9,14 +9,12 @@
class_attribute :orderable_configurations
end
module ClassMethods
-
- def orderable options = {}
+ def orderable(options = {})
configuration = Mongoid::Orderable::Configuration.build(self, options)
Mongoid::Orderable::OrderableClass.setup(self, configuration)
end
-
end
end