Permalink
Browse files

fix AR::AttributeMethods::Dirty :nodoc: [ci skip]

  • Loading branch information...
1 parent e216b00 commit 7e538e81541f4c756cf465d7240b85cfe290676a Francesco Rodriguez committed Sep 22, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/attribute_methods/dirty.rb
@@ -7,7 +7,7 @@ module ActiveRecord
end
module AttributeMethods
- module Dirty
+ module Dirty # :nodoc:
extend ActiveSupport::Concern
include ActiveModel::Dirty
@@ -21,7 +21,7 @@ module Dirty
end
# Attempts to +save+ the record and clears changed attributes if successful.
- def save(*) #:nodoc:
+ def save(*)
if status = super
@previously_changed = changes
@changed_attributes.clear
@@ -30,15 +30,15 @@ def save(*) #:nodoc:
end
# Attempts to <tt>save!</tt> the record and clears changed attributes if successful.
- def save!(*) #:nodoc:
+ def save!(*)
super.tap do
@previously_changed = changes
@changed_attributes.clear
end
end
# <tt>reload</tt> the record and clears changed attributes.
- def reload(*) #:nodoc:
+ def reload(*)
super.tap do
@previously_changed.clear
@changed_attributes.clear

0 comments on commit 7e538e8

Please sign in to comment.