Open
Description
I am using grape, grape entity, and rails together for an api. I have a rails model that has a column, format
. When I try to expose this column, I get an error that looks something like -
too few arguments
... /gems/grape-entity-0.5.1/lib/grape_entity/entity.rb:482:in `format'
... /gems/grape-entity-0.5.1/lib/grape_entity/entity.rb:482:in `delegate_attribute'
The entity in question
class Content < Grape::Entity
expose :id, :guid, :slug, :metadata, :url, :format
end
I am using [email protected]
and [email protected]