lib/humidifier/reservoir/base_mapper.rb in humidifier-reservoir-0.2.2 vs lib/humidifier/reservoir/base_mapper.rb in humidifier-reservoir-0.2.3

- old
+ new

@@ -48,10 +48,11 @@ end # Builds a humidifier resource using the given humidifier resource class, # the logical name for the resource, and the user-specified attributes. def resource_for(clazz, name, attributes) - mapped = respond_to?(:attribute_defaults) ? attribute_defaults(name) : {} + mapped = + respond_to?(:attribute_defaults) ? attribute_defaults(name) : {} attributes.each do |key, value| mapped.merge!(mapped_from(clazz, key, value)) end