aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
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/lib
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/lib')
-rw-r--r--activerecord/lib/active_record/reflection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb
index 5ce134d6b7..1a9e0a4a40 100644
--- a/activerecord/lib/active_record/reflection.rb
+++ b/activerecord/lib/active_record/reflection.rb
@@ -1105,7 +1105,7 @@ module ActiveRecord
end
def alias_name
- Arel::Table.new(table_name)
+ Arel::Table.new(table_name, type_caster: klass.type_caster)
end
def all_includes; yield; end