We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976c1ab commit f6cd72dCopy full SHA for f6cd72d
lib/grape/entity.rb
@@ -208,7 +208,7 @@ def value_for(attribute, options = {})
208
format_with = exposure_options[:format_with]
209
210
if format_with.is_a? Symbol
211
- self.send(format_with.to_sym, object.send(attribute))
+ self.send(format_with, object.send(attribute))
212
elsif format_with.respond_to? :call
213
format_with.call(object.send(attribute))
214
end
0 commit comments