Permalink
Browse files

always return the identity function from type_cast_code

  • Loading branch information...
1 parent 72c1818 commit 740bc35d328b262669e70065cd30e6b354456f26 @tenderlove tenderlove committed Jan 29, 2011
@@ -98,7 +98,7 @@ def type_cast_code(var_name)
when :date then "#{self.class.name}.string_to_date(#{var_name})"
when :binary then "#{self.class.name}.binary_to_string(#{var_name})"
when :boolean then "#{self.class.name}.value_to_boolean(#{var_name})"
- else nil
+ else var_name
end
end

0 comments on commit 740bc35

Please sign in to comment.