lib/grape_entity/exposure/base.rb in grape-entity-0.7.1 vs lib/grape_entity/exposure/base.rb in grape-entity-0.8.0

- old
+ new

@@ -52,10 +52,13 @@ def valid?(entity) is_delegatable = entity.delegator.delegatable?(@attribute) || entity.respond_to?(@attribute, true) if @is_safe is_delegatable else - is_delegatable || raise(NoMethodError, "#{entity.class.name} missing attribute `#{@attribute}' on #{entity.object}") + is_delegatable || raise( + NoMethodError, + "#{entity.class.name} missing attribute `#{@attribute}' on #{entity.object}" + ) end end def value(_entity, _options) raise NotImplementedError