aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2010-08-12 17:09:58 +0200
committerPaco Guzman <fjguzman@aspgems.com>2010-08-12 17:09:58 +0200
commit8a2b69b7273379f3c9f68ff7903b653801951ac3 (patch)
treed040890da223ef4317981377e83143b7a6934992 /activerecord
parent599c50583784537eec454f5e91dac89f88e54da3 (diff)
downloadrails-8a2b69b7273379f3c9f68ff7903b653801951ac3.tar.gz
rails-8a2b69b7273379f3c9f68ff7903b653801951ac3.tar.bz2
rails-8a2b69b7273379f3c9f68ff7903b653801951ac3.zip
applied guidelines to "# =>"
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG2
-rw-r--r--activerecord/lib/active_record/autosave_association.rb10
-rw-r--r--activerecord/lib/active_record/reflection.rb2
3 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 20b2286fc0..972c907c46 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -966,7 +966,7 @@ during calendar reform. #7649, #7724 [fedot, Geoff Buesing]
* Made increment_counter/decrement_counter play nicely with optimistic locking, and added a more general update_counters method [Jamis Buck]
* Reworked David's query cache to be available as Model.cache {...}. For the duration of the block no select query should be run more then once. Any inserts/deletes/executes will flush the whole cache however [Tobias Lütke]
- Task.cache { Task.find(1); Task.find(1) } #=> 1 query
+ Task.cache { Task.find(1); Task.find(1) } # => 1 query
* When dealing with SQLite3, use the table_info pragma helper, so that the bindings can do some translation for when sqlite3 breaks incompatibly between point releases. [Jamis Buck]
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb
index c661d68869..dc6352ab12 100644
--- a/activerecord/lib/active_record/autosave_association.rb
+++ b/activerecord/lib/active_record/autosave_association.rb
@@ -72,20 +72,20 @@ module ActiveRecord
#
# post = Post.new(:title => 'ruby rocks')
# post.comments.build(:body => 'hello world')
- # post.save #=> will save both post and comment
+ # post.save # => will save both post and comment
#
# post = Post.create(:title => 'ruby rocks')
# post.comments.build(:body => 'hello world')
- # post.save #=> will save both post and comment
+ # post.save # => will save both post and comment
#
# post = Post.create(:title => 'ruby rocks')
# post.comments.create(:body => 'hello world')
- # post.save #=> will save both post and comment
+ # post.save # => will save both post and comment
#
# post = Post.create(:title => 'ruby rocks')
# post.comments.build(:body => 'hello world')
# post.comments[0].body = 'hi everyone'
- # post.save #=> will save both post and comment and comment will have 'hi everyone'
+ # post.save # => will save both post and comment and comment will have 'hi everyone'
#
# In the above cases even without <tt>autosave</tt> option children got updated.
#
@@ -99,7 +99,7 @@ module ActiveRecord
# post = Post.create(:title => 'ruby rocks')
# post.comments.create(:body => 'hello world')
# post.comments[0].body = 'hi everyone'
- # post.save #=> will save both post and comment and comment will have 'hi everyone'
+ # post.save # => will save both post and comment and comment will have 'hi everyone'
#
# Destroying one of the associated models members, as part of the parent's
# save action, is as simple as marking it for destruction:
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 7f47a812eb..8295fd68b3 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -41,7 +41,7 @@ module ActiveRecord
# Returns the AggregateReflection object for the named +aggregation+ (use the symbol).
#
- # Account.reflect_on_aggregation(:balance) #=> the balance AggregateReflection
+ # Account.reflect_on_aggregation(:balance) # => the balance AggregateReflection
#
def reflect_on_aggregation(aggregation)
reflections[aggregation].is_a?(AggregateReflection) ? reflections[aggregation] : nil