diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-04-07 11:29:04 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-04-07 11:29:04 +0300 |
commit | b34c98153f3c9b26b5ba5a0b35a15157e51d3a53 (patch) | |
tree | f59baf58addbaa6072ef0f3c38e39ef8bf0bce64 /activerecord/lib | |
parent | 060ee2c6c94cf7050bd8be22c79e053fd602579d (diff) | |
download | rails-b34c98153f3c9b26b5ba5a0b35a15157e51d3a53.tar.gz rails-b34c98153f3c9b26b5ba5a0b35a15157e51d3a53.tar.bz2 rails-b34c98153f3c9b26b5ba5a0b35a15157e51d3a53.zip |
Change join model name constant to private constant
This will resolve the fixme message which is about making constant invisible.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 5e3e5f709b..deecd1b7b7 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1718,10 +1718,8 @@ module ActiveRecord join_model = builder.through_model - # FIXME: we should move this to the internal constants. Also people - # should never directly access this constant so I'm not happy about - # setting it. const_set join_model.name, join_model + private_constant join_model.name middle_reflection = builder.middle_reflection join_model |