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

Update README

Open filipstefansson opened this issue 11 years ago • 1 comments

Maybe clarify that you can call methods on objects like this:

expose :categories, :using => CategoryEntity do | instance |
    instance.method_that_returns_categories(option_1, option_2)
end

Useful if you use a gem like ActsAsTaggableOn for tags, where you can't access the children by just calling parent.child.

filipstefansson avatar May 06 '14 17:05 filipstefansson

Please feel free to make a PR, appreciated.

dblock avatar May 07 '14 11:05 dblock