From 9925a7db09f76a03ccc65d3a7afee29f8fca6660 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 27 Feb 2015 07:24:21 -0600 Subject: [PATCH] Update Attribute Was with a link to the ActiveModel module. --- rails/attribute-was.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rails/attribute-was.md b/rails/attribute-was.md index 1bac502..1c0f2fd 100644 --- a/rails/attribute-was.md +++ b/rails/attribute-was.md @@ -2,10 +2,12 @@ When modifying the attributes of an `ActiveRecord` object, you may want to know what values the modified attributes used to have. `ActiveRecord` gets -some handy methods from the `ActiveModel::Dirty` module that allow you to -check these values out even if the object's attributes were changed before -you received it (though you are out of luck once it has been saved). -Just add `_was` onto the end of the attribute in question. +some handy methods from the +[`ActiveModel::Dirty`](http://api.rubyonrails.org/classes/ActiveModel/Dirty.html) +module that allow you to check these values out even if the object's +attributes were changed before you received it (though you are out of luck +once it has been saved). Just add `_was` onto the end of the attribute in +question. ```ruby >> pokemon.name