Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing compatible with rails version >= 3.2.9 #38

  • Loading branch information...
commit b85de26a3486cfe35d5da744e0af77c9fd528a38 1 parent 4118191
@danieltamiosso danieltamiosso authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/delocalize/rails_ext/active_record.rb
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.