Permalink
Browse files

Fixed outdated Object.type reference to use Object.class instead.

  • Loading branch information...
1 parent 6f2a2dc commit b3d2315b0a3aecce4e12d0a1c7a30abc1fed546a Blake Gentry committed Sep 2, 2009
View
2 remarkable_datamapper/lib/remarkable_datamapper/matchers/validate_is_unique_matcher.rb
@@ -112,7 +112,7 @@ def new_value_for_scope(scope)
nil
end
- case column_type.type
+ case column_type.class
when :int, :integer, :float, :decimal
new_value_for_stringfiable_scope(scope)
when :datetime, :timestamp, :time

0 comments on commit b3d2315

Please sign in to comment.