mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
this method should never return nil
This commit is contained in:
parent
3fc598095e
commit
8bfa8e7cbe
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ module ActiveRecord
|
|||
when :datetime, :timestamp then "#{var_name}.class == Time ? #{var_name} : #{self.class.name}.string_to_time(#{var_name})"
|
||||
when :time then "#{var_name}.class == Time ? #{var_name} : #{self.class.name}.string_to_dummy_time(#{var_name})"
|
||||
when :date then "#{var_name}.class == Date ? #{var_name} : #{self.class.name}.string_to_date(#{var_name})"
|
||||
when :binary then nil
|
||||
when :binary then var_name
|
||||
when :boolean then "#{self.class.name}.value_to_boolean(#{var_name})"
|
||||
else var_name
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue