lib/billogram/resource.rb in billogram-0.5.0 vs lib/billogram/resource.rb in billogram-0.5.1

- old
+ new

@@ -21,10 +21,14 @@ end end def initialize(attributes = {}) Hash(attributes).each do |key, value| - public_send("#{key}=", value) + if respond_to?("#{key}=") + public_send("#{key}=", value) + else + warn("Billogram: unknown attribute #{key}") + end end RelationBuilder.new(self, attributes).call end