- Now only supports ActiveRecord 4.2+.
- @iggant implemented #67 ActiveRecord 5.2 compatibility
- @Looooong
implemented
#76
Options passed to
#save
when publishing a draft can now be customized.
- @jmfederico fixed #73 Rails 5 migration error
- @jmfederico implemented #67 5.1 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
- @jokius fixed #57 Fix if self.changeset is nil
- @jmfederico fixed #64 Fix error when saving a draft when one already existed
- @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`
- @chrisdpeters fixed #49 - irb: warn: can't alias context from irb_context
- 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.
- @chrisdpeters Fixed Make Draftsman enabled in Rails by default
- @npezza93 Implemented #44 Rails 5 compatibility
- @npafundi Implemented #20 - Adding callbacks for draft creation, update, and destroy
- @chrisdpeters
Implemented
#16 -
Rename
draft_destroy
todraft_destruction
- @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
- @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 -
Fix
serve_static_assets
deprecation warning
- @chrisdpeters Fixed - Fix loading of Rails controller module for Rails 4.2+
- @npafundi Fixed #13 - LoadError when trying to run migrations
- @npafundi Fixed #22 - Exception on draft_destroy when has_one association is nil
- @chrisdpeters
Fixed
#24 -
Stack too deep: Error when running
bundle exec rails c
in app including draftsman
- Fixed regression #18 - Exception when destroying drafts
- Fixed #8 - Update specs to use new community standards
- Fixed #9 - Sinatra extension should not use Sinatra base namespace
- Fixed #12 - JSON::ParserError when draft_destroying a widget which was just created
- Commit aae737f -
skip
option not persisting skipped values correctly
- Commit 1e2a59f - Add support for PostgreSQL JSON data type for
object
,object_changes
, andprevious_draft
columns.
- Commit dbc6c83 - Reifying a record that was drafted for destruction uses data from a drafted update before that if that's what happened.
- Fixed #4 - Added
referenced_table_name
argument to scopes.
- Fixed #3 - draft_publication_dependencies not honoring drafts when draft is an update.
- Fixed #1 - License missing from gemspec - Added MIT license.
- Initial release.