grape-entity icon indicating copy to clipboard operation
grape-entity copied to clipboard

An API focused facade that sits on top of an object model.

Results 96 grape-entity issues
Sort by recently updated
recently updated
newest added

Many specs fail with `missing attribute ...` exception. But there are some reasons that it's right. No value for some key -> cannot expose such attribute. Otherwise `nil` value is...

One of my projects is running stable with grape-entity `0.3.0`. But as soon I update to `0.4.0` or higher some of my tests fail. The odd thing is that they...

bug?

This is the start of my proposed solution to the problem I outlined on the mailing list [here](https://groups.google.com/forum/#!topic/ruby-grape/cWnj8tZnOMw). It doesn't add general purpose dynamic attribute, it just allows you to...

Example. ``` ruby class Person < Grape::Entity expose :user do expose(:in_first) { |_| 'value' } end end class Student < Person expose :user do expose(:user_id) { |_| 'value' } expose(:user_display_id,...

question
feature

Maybe it's just a corner case but maybe not. I also think it could be related to #120 but I'm not sure.

bug?

``` class Sticker < Grape::Entity expose :id expose :thumb do |model, opts| model.thumb.url end end class StickerMess < Sticker expose :description, :times unexpose :thumb end ``` The grape server mount...

bug?

Suppose this case: ``` ruby class GeneralInfo < Grape::Entity expose :gender, :age end class Student < Grape::Entity expose :info, using: GeneralInfo expose :info do expose :grade end end Student.represent({info: {...

question
feature

Consider the following: ``` ruby with_options if: { kind: :short } do expose :name do |obj, opts| "#{obj.first_name[0]}. #{obj.last_name}" end end with_options if: { kind: :full } do expose :name...

question
feature

Hey, I've added Russian Doll caching to an existing endpoint, and I'm getting the strange error below. **This is the code I have:** ``` ruby category = Category.find_by_id(params[:category_id]) ordered_sub_items =...

question

This feature allows you to specify another entity to copy exposures from. It's useful when flattening a hierarchy for CSV. It also adds the `:object` option to exposures that can...