- BREAKING:
define
returns a subclass ofPluckMap::Presenter
instead of an instance (@boblail) - FEATURE:
define
also creates structs to correspond to each presenter (@boblail)
- FIX: Respect default_scopes for relationships (@boblail)
- FEATURE: Add structured attributes to allow nesting attributes as a hash (@kobsy)
- BREAKING: Remove deprecated features/methods (@boblail)
- FEATURE: Optimize
to_json
when a presenter doesn't need to process values in Ruby (@boblail) - FEATURE: Add
has_many
andhas_one
DSL for presenting nested resources (@boblail)
- FIX: Allow presenting a subclass of the presenter's model (@kobsy)
- FIX: Aliased SQL expressions to work-around a bug with Rails Postgres adapter (@kobsy)
- REFACTOR: Deprecated
Presenter#no_map?
and introducedAttributes#will_map?
to replace it (@boblail) - REFACTOR: Deprecated passing strings to
:select
(Known-safe values can be wrapped inArel.sql
) (@boblail)
- REFACTOR: Introduced a new syntax for defining PluckMap Presenters and deprecated calling
PluckMap::Presenter.new
with a block (@boblail) - FEATURE: Add
to_json
presenter method (@boblail) - FEATURE: Add
to_csv
presenter method (@boblail)
- FIX: Use
PluckMap::NullLogger
whenRails.logger
isnil
(@boblail)
- REFACTOR: Introduced several DEPRECATION WARNINGs that will be harvested in v1.0.0 (@boblail)
- REFACTOR: Changed the implementation of the private method
selects
(@boblail)
- IMPROVEMENT: Add support for MySQL (@boblail)
- FIX: Allow static values to be falsey (@kobsy)
- FIX: Allow static values to be falsey (@kobsy)
- Initial version (@boblail)