Skip to content

Commit f6cd72d

Browse files
author
Robert Ross
committed
I like being redundant occasionally.
1 parent 976c1ab commit f6cd72d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/entity.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def value_for(attribute, options = {})
208208
format_with = exposure_options[:format_with]
209209

210210
if format_with.is_a? Symbol
211-
self.send(format_with.to_sym, object.send(attribute))
211+
self.send(format_with, object.send(attribute))
212212
elsif format_with.respond_to? :call
213213
format_with.call(object.send(attribute))
214214
end

0 commit comments

Comments
 (0)