lib/ostruct/sanitizer.rb in ostruct-sanitizer-0.6.1 vs lib/ostruct/sanitizer.rb in ostruct-sanitizer-0.7.0

- old
+ new

@@ -71,10 +71,10 @@ method[/.*(?==\z)/m].to_s.to_sym end def override_setter_for(field) define_singleton_method("#{field}=") do |value| - modifiable?[field] = sanitize(field, value) + @table[field] = sanitize(field, value) end end def sanitize(field, value) return value if value.nil?