aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/book.rb
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-05-02 14:55:55 -0700
committerGitHub <noreply@github.com>2017-05-02 14:55:55 -0700
commitc5305f6fdfd46349a6f0646c3e599b9ed706f59a (patch)
treecc029a4a586b8e630920fb326dad312c5e85cfcf /activerecord/test/models/book.rb
parenta23846e0ab2335246cabad08550fa5c77ceb8332 (diff)
parent8d64cd86db1bc5e1ad119d13eb14f94726a0765f (diff)
downloadrails-c5305f6fdfd46349a6f0646c3e599b9ed706f59a.tar.gz
rails-c5305f6fdfd46349a6f0646c3e599b9ed706f59a.tar.bz2
rails-c5305f6fdfd46349a6f0646c3e599b9ed706f59a.zip
Merge pull request #28961 from maclover7/jm-fix-28959
Add type caster to `RuntimeReflection#alias_name`
Diffstat (limited to 'activerecord/test/models/book.rb')
-rw-r--r--activerecord/test/models/book.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb
index 17bf3fbcb4..5f8a8a96dd 100644
--- a/activerecord/test/models/book.rb
+++ b/activerecord/test/models/book.rb
@@ -1,5 +1,5 @@
class Book < ActiveRecord::Base
- has_many :authors
+ belongs_to :author
has_many :citations, foreign_key: "book1_id"
has_many :references, -> { distinct }, through: :citations, source: :reference_of