Permalink
Browse files

Fixed new-style hash

  • Loading branch information...
1 parent 26284b9 commit 95235e68048f5ecab6671179a8fa5b47c9a17138 @pyromaniac committed Feb 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mongoid/orderable.rb
@@ -13,7 +13,7 @@ def orderable options = {}
}
configuration.update options if options.is_a?(Hash)
- field configuration[:column], type: Integer
+ field configuration[:column], :type => Integer
index configuration[:column]
configuration[:scope] = "#{configuration[:scope]}_id".to_sym if configuration[:scope].is_a?(Symbol) && configuration[:scope].to_s !~ /_id$/
@@ -121,7 +121,7 @@ def apply_position target_position
self.class.find(_id).remove_from_list
self.orderable_position = nil
end
-
+
return if !target_position && in_list?
target_position = target_position_to_position target_position

0 comments on commit 95235e6

Please sign in to comment.