Permalink
Browse files

fixing compatible with rails version >= 3.2.9 #38

  • Loading branch information...
1 parent 4118191 commit b85de26a3486cfe35d5da744e0af77c9fd528a38 @danieltamiosso danieltamiosso committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delocalize/rails_ext/active_record.rb
@@ -39,7 +39,7 @@ def convert_number_column_value_with_localization(value)
end
alias_method_chain :convert_number_column_value, :localization
- def field_changed?(attr, old, value)
+ def _field_changed?(attr, old, value)
if column = column_for_attribute(attr)
if column.number? && column.null && (old.nil? || old == 0) && value.blank?
# For nullable numeric columns, NULL gets stored in database for blank (i.e. '') values.

0 comments on commit b85de26

Please sign in to comment.