motion-prime/models/model.rb in motion-prime-0.3.3 vs motion-prime/models/model.rb in motion-prime-0.4.0
- old
+ new
@@ -29,10 +29,10 @@
attributes = new_attributes.symbolize_keys
attributes.each do |k, v|
if has_attribute?(k)
assign_attribute(k, v) unless options[:skip_nil_values] && v.nil?
elsif options[:check_attribute_presence]
- puts "unknown attribute: #{k}"
+ NSLog("unknown attribute: #{k}")
else
raise(NoMethodError, "unknown attribute: #{k}")
end
end
end