Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
Fix respond_to? test for #typecast_to_primitive
Browse files Browse the repository at this point in the history
  • Loading branch information
dkubb committed Jan 24, 2013
1 parent d89fd9a commit d610a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dm-core/property.rb
Expand Up @@ -682,7 +682,7 @@ def properties
def typecast(value)
if value.nil? || primitive?(value)
value
elsif respond_to?(:typecast_to_primitive)
elsif respond_to?(:typecast_to_primitive, true)
typecast_to_primitive(value)
end
end
Expand Down

0 comments on commit d610a56

Please sign in to comment.