diff options
author | Matthew Draper <matthew@trebex.net> | 2016-02-04 09:14:05 +1030 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2016-02-04 09:14:05 +1030 |
commit | 5952861948a0918b1955202c1ea19589634537dc (patch) | |
tree | ee656e004312461b079cfa85f42165ce2c4121ab /activerecord/lib/active_record/core.rb | |
parent | cdc112e3ea8bd7b5ba787e64f3f8ee3da3e5a64f (diff) | |
download | rails-5952861948a0918b1955202c1ea19589634537dc.tar.gz rails-5952861948a0918b1955202c1ea19589634537dc.tar.bz2 rails-5952861948a0918b1955202c1ea19589634537dc.zip |
Extract a Relation#arel_attribute
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index aa8f22ce42..24fd0aaecf 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -256,7 +256,7 @@ module ActiveRecord end end - def arel_attribute(name, table) # :nodoc: + def arel_attribute(name, table = arel_table) # :nodoc: name = attribute_alias(name) if attribute_alias?(name) table[name] end |