lib/humidifier/config/mapper.rb in humidifier-4.1.1 vs lib/humidifier/config/mapper.rb in humidifier-4.2.0

- old
+ new

@@ -81,10 +81,10 @@ extracted = mapped.delete(common_attribute) extract[common_attribute] = extracted if extracted end end - def mapped_from(clazz, key, value) # rubocop:disable Metrics/MethodLength + def mapped_from(clazz, key, value) if self.class.attribute_methods.include?(key.to_sym) # The given attribute name has been defined using the `::attribute` # DSL method, so send the given value to that method and return the # resulting hash. public_send(:"attribute_#{key}", value)