- #114: Added 'only' option that selects which attributes should be returned - @estevaoam.
- Your contribution here.
- #109: Added
unexpose
method - @jonmchan. - #98: Added nested conditionals - @zbelzer.
- #105: Specify which attribute is missing in which Entity - @jhollinger.
- #111: Fix: allow usage of attributes with name 'key' if
Hash
objects are used - @croeck. - #110: Fix: safe exposure when using
Hash
models - @croeck. - #91: Fix: OpenStruct serializing - @etehtsea.
- #85: Added
present_collection
to indicate that anEntity
presents an entire Collection - @dspaeth-faber. - #85: Hashes can now be passed as object to be presented and the
Hash
keys can be referenced by expose - @dspaeth-faber.
- #77: Fix: compatibility with Rspec 3 - @justfalter.
- #76: Improve performance of entity serialization - @justfalter
- #60: Performance issues introduced by nested exposures - @AlexYankee.
- #60: Nested exposure double-exposes a field - @AlexYankee.
- Ruby 1.8.x is no longer supported - @dblock.
- #36: Enforcing Ruby style guidelines via Rubocop - @dblock.
- #7: Added
serializable
option torepresent
- @mbleigh. - #18: Added
safe
option toexpose
, will not raise error for a missing attribute - @fixme. - #16: Added
using
option toexpose SYMBOL BLOCK
- @fahchen. - #24: Return documentation with
as
param considered - @drakula2k. - #27: Properly serialize hashes - @clintonb.
- #28: Look for method on entity before calling it on the object - @MichaelXavier.
- #33: Support proper merging of nested conditionals - @wyattisimo.
- #43: Call procs in context of entity instance - @joelvh.
- #47: Support nested exposures - @wyattisimo.
- #46, #50: Added support for specifying the presenter class in
using
in string format - @larryzhao. - #51: Raise
ArgumentError
if an unknown option is used withexpose
- @aj0strow. - #51: Alias
:with
to:using
, consistently with the Grape api endpoints - @aj0strow.
- #9: Added
with_options
for block-level exposure setting - @SegFaultAX. - The
instance.entity
method now optionally acceptsoptions
- @mbleigh. - You can pass symbols to
:if
and:unless
to simply check for truthiness/falsiness of the specified options key - @mbleigh.
- Moved the namespace back to
Grape::Entity
to preserve compatibility with Grape - @dblock.
- Initial public release - @agileanimal.