Releases: copasetickid/draftsman
Releases · copasetickid/draftsman
v0.7.0 - The @jmfederico Release
Enhancements
- @jmfederico implemented #67 ActiveRecord 5 compatibility
- @chrisdpeters implemented Change Draft.object_col_is_json? to skip over itself if not stashing drafted changes
- @npezza93 implemented #58 Only update attributes that get changed instead of all of them
- @jmfederico implemented #65 Do not "touch" models when not updating the base table content
Bug Fixes
v0.6.0
Enhancements
- @chrisdpeters implemented #53 - Add option to not stash drafted data separately
- @chrisdpeters implemented #31 - Allow
whodunnit
column name to be configurable - @chrisdpeters implemented #51 - Performance: skip reification logic on create drafts
- @chrisdpeters implemented #47 - Add
#save_draft
method to classes initialized with#has_drafts
Bug Fixes
- @chrisdpeters fixed #49 - irb: warn: can't alias context from irb_context
Deprecations/Breaking Changes
- Now only supports ActiveRecord 4+.
#draft_creation
and#draft_update
are now deprecated and will be removed in v1.0.0. Use#save_draft
instead.
v0.5.1
Bug Fix
- @chrisdpeters
Fixed
Make Draftsman enabled in Rails by default
v0.5.0
Enhancements
- @npezza93
Implemented
#44
Rails 5 compatibility
Breaking Changes
Setting whodunnit
on a draft record is no longer done automatically in the controller. If your controllers have a current_user
method, you can still easily track who is responsible for changes by adding a controller filter:
class ApplicationController
before_action :set_draftsman_whodunnit
end
v0.4.0
Enhancements
- @npafundi
Implemented
#20 -
Adding callbacks for draft creation, update, and destroy - @chrisdpeters
Implemented
#16 -
Renamedraft_destroy
todraft_destruction
- @npafundi
Implemented
#20 -
Adding callbacks for draft creation, update, and destroy
Bug Fixes
- @defbyte
Fixed
#39 -
Uh oh, ActiveSupport::DeprecationException error when running generated migrations - @chrisdpeters
Fixed
#40 -
Docs say publish! is available on the model instance, but it is not - @chrisdpeters
Fixed
#17 -
Fix "open-ended dependency on rake" warning on gem build
v0.3.7
Bug Fixes
- @bdunham
Fixed -
Prevented double require of model definition - @chrisdpeters
Fixed
#36 -
Fails miserably with foreign keys - @dpaluy
Fixed
#33 -
SerializedAttributes is deprecated in Rails 4.2.x, and will be removed in Rails 5 - @chrisdpeters
Fixed -
Fixserve_static_assets
deprecation warning
v0.3.6
Bug Fix
- @chrisdpeters
Fixed -
Fix loading of Rails controller module for Rails 4.2+