diff options
author | Zachary Scott <e@zzak.io> | 2014-08-14 08:57:19 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-08-14 08:57:19 -0700 |
commit | fdd4b73cb8ddf35c941b96033cab15e5080f54ac (patch) | |
tree | 3afdc8287d2c387d1537c45412308fe72c02bbb8 /activerecord/lib/active_record | |
parent | b131978f366c38a269661e158bf53393817d7020 (diff) | |
download | rails-fdd4b73cb8ddf35c941b96033cab15e5080f54ac.tar.gz rails-fdd4b73cb8ddf35c941b96033cab15e5080f54ac.tar.bz2 rails-fdd4b73cb8ddf35c941b96033cab15e5080f54ac.zip |
Use string for order argument, fixed from #16501 [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 6a1ea9623b..d3b9b8251a 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1209,7 +1209,7 @@ module ActiveRecord # Option examples: # has_many :comments, -> { order "posted_on" } # has_many :comments, -> { includes :author } - # has_many :people, -> { where(deleted: false).order(:name) }, class_name: "Person" + # has_many :people, -> { where(deleted: false).order("name") }, class_name: "Person" # has_many :tracks, -> { order "position" }, dependent: :destroy # has_many :comments, dependent: :nullify # has_many :tags, as: :taggable |