Tom Corley
Results
1
comments of
Tom Corley
changing ``` def coerce(attributes) ::Hash.try_convert(attributes) or raise( NoMethodError, "Expected #{attributes.inspect} to respond to #to_hash" ) end ``` to ``` def coerce(attributes) (attributes.respond_to?(:permitted?) ? attributes.to_h : ::Hash.try_convert(attributes) or raise( NoMethodError, "Expected...