lib/demoji.rb in demoji-0.0.5 vs lib/demoji.rb in demoji-0.0.6
- old
+ new
@@ -28,10 +28,10 @@
retry
end
def _fix_utf8_attributes
self.attributes.each do |k, v|
- next if v.blank? || !v.is_a?(String)
+ next if v.blank? || !v.is_a?(String) || (self.column_for_attribute(k).type == :binary)
self.send "#{k}=", _fix_chars(v)
end
end
def _fix_chars(str)