diff options
author | Prem Sichanugrist <s@sikac.hu> | 2013-11-11 13:53:54 -0500 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2013-11-11 13:53:54 -0500 |
commit | efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e (patch) | |
tree | 88592ddf445e74bab4d918481cc377cb384f6c03 /activerecord/lib/active_record/relation | |
parent | 83271a64f961e8138bf1e125251860333ba88f72 (diff) | |
download | rails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.tar.gz rails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.tar.bz2 rails-efff6c1fd4b9e2e4c9f705a45879373cb34a5b0e.zip |
Change syntax format for example returned values
According to our guideline, we leave 1 space between `#` and `=>`, so we
want `# =>` instead of `#=>`.
Thanks to @fxn for the suggestion.
[ci skip]
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 62c555f6d6..a9dbc14d6e 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -552,9 +552,9 @@ module ActiveRecord # Allows you to change a previously set where condition for a given attribute, instead of appending to that condition. # - # Post.where(trashed: true).where(trashed: false) #=> WHERE `trashed` = 1 AND `trashed` = 0 - # Post.where(trashed: true).rewhere(trashed: false) #=> WHERE `trashed` = 0 - # Post.where(active: true).where(trashed: true).rewhere(trashed: false) #=> WHERE `active` = 1 AND `trashed` = 0 + # Post.where(trashed: true).where(trashed: false) # => WHERE `trashed` = 1 AND `trashed` = 0 + # Post.where(trashed: true).rewhere(trashed: false) # => WHERE `trashed` = 0 + # Post.where(active: true).where(trashed: true).rewhere(trashed: false) # => WHERE `active` = 1 AND `trashed` = 0 # # This is short-hand for unscope(where: conditions.keys).where(conditions). Note that unlike reorder, we're only unscoping # the named conditions -- not the entire where statement. @@ -701,7 +701,7 @@ module ActiveRecord # Specifies table from which the records will be fetched. For example: # # Topic.select('title').from('posts') - # #=> SELECT title FROM posts + # # => SELECT title FROM posts # # Can accept other relation objects. For example: # |