aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/persistence.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-08-02 12:25:26 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-08-02 12:25:26 -0400
commit1ce40ca56216ae76e93cde78ec2752de110400c0 (patch)
treebe1a67a987b299d00ef01af7622e0cb917ea60a1 /activerecord/lib/active_record/persistence.rb
parentb8d9d9ce0a72218fa0891485063d3fcb3e77cae8 (diff)
downloadrails-1ce40ca56216ae76e93cde78ec2752de110400c0.tar.gz
rails-1ce40ca56216ae76e93cde78ec2752de110400c0.tar.bz2
rails-1ce40ca56216ae76e93cde78ec2752de110400c0.zip
ensuring that description does not exceed 100 columns
Diffstat (limited to 'activerecord/lib/active_record/persistence.rb')
-rw-r--r--activerecord/lib/active_record/persistence.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb
index 38b91652ee..d5a0295b4b 100644
--- a/activerecord/lib/active_record/persistence.rb
+++ b/activerecord/lib/active_record/persistence.rb
@@ -91,8 +91,8 @@ module ActiveRecord
# like render <tt>:partial => @client.becomes(Company)</tt> to render that
# instance using the companies/company partial instead of clients/client.
#
- # Note: The new instance will share a link to the same attributes as the original class. So any change to the attributes in either
- # instance will affect the other.
+ # Note: The new instance will share a link to the same attributes as the original class.
+ # So any change to the attributes in either instance will affect the other.
def becomes(klass)
became = klass.new
became.instance_variable_set("@attributes", @attributes)