lib/enlight/responses/response.rb in enlight-0.1.4 vs lib/enlight/responses/response.rb in enlight-0.2.0

- old
+ new

@@ -6,10 +6,10 @@ attr_accessor :status attr_accessor :error def initialize(attributes={}) attributes.deep_transform_keys! { |k| k.to_s.underscore } - attributes.each {|k,v| send("#{k}=", v) } + attributes.each {|k,v| send("#{k}=", v) if respond_to?(k) } end end end end