Skip to content

Activemode::Dirty attributes query methods consistency before and after saving.#19847

Merged
rafaelfranca merged 1 commit into
rails:masterfrom
fertapric:activemodel-dirty-after-save-syntactic-sugar
Apr 21, 2015
Merged

Activemode::Dirty attributes query methods consistency before and after saving.#19847
rafaelfranca merged 1 commit into
rails:masterfrom
fertapric:activemodel-dirty-after-save-syntactic-sugar

Conversation

@fertapric

Copy link
Copy Markdown
Contributor

Provides ActiveModel::Dirty#[attr_name]_previously_changed? and ActiveModel::Dirty#[attr_name]_previous_change to improve access to recorded changes after the model has been saved.

It makes the dirty-attributes query methods consistent before and after saving. It comes handy when attribute changes are inspected in controllers, services objects and so on.

`ActiveModel::Dirty#[attr_name]_previous_change` to improve access
to recorded changes after the model has been saved.

It makes the dirty-attributes query methods consistent before and after
saving.
rafaelfranca added a commit that referenced this pull request Apr 21, 2015
…-syntactic-sugar

Activemode::Dirty attributes query methods consistency before and after saving.
@rafaelfranca rafaelfranca merged commit 7258b97 into rails:master Apr 21, 2015
@fertapric fertapric deleted the activemodel-dirty-after-save-syntactic-sugar branch August 27, 2015 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants