aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-04-25 20:00:46 +0900
committerGitHub <noreply@github.com>2018-04-25 20:00:46 +0900
commitc81a7fcf76663e6d189792d6eed57b1162199635 (patch)
treebee97a9afb3f1c3ec7a1232ee0dfffec463893d0 /activerecord/test/models
parent03721d9379c0eeb8b0c93c92301ba7a9caa436a2 (diff)
parentbc62f2a3bec27497e6963af42f49857926d6d860 (diff)
downloadrails-c81a7fcf76663e6d189792d6eed57b1162199635.tar.gz
rails-c81a7fcf76663e6d189792d6eed57b1162199635.tar.bz2
rails-c81a7fcf76663e6d189792d6eed57b1162199635.zip
Merge pull request #32717 from tgturner/make-get-and-set-values-public-again
Make get_value public again
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/author.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/author.rb b/activerecord/test/models/author.rb
index bd12cdf7ef..75932c7eb6 100644
--- a/activerecord/test/models/author.rb
+++ b/activerecord/test/models/author.rb
@@ -162,6 +162,9 @@ class Author < ActiveRecord::Base
def extension_method; end
end
+ has_many :top_posts, -> { order(id: :asc) }, class_name: "Post"
+ has_many :other_top_posts, -> { order(id: :asc) }, class_name: "Post"
+
attr_accessor :post_log
after_initialize :set_post_log