Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 21, 2015
Merged

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

merged 1 commit into from Apr 21, 2015

Conversation

fertapric
Copy link
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.

None yet

2 participants