diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-02 15:08:53 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2013-04-02 15:08:53 -0400 |
commit | 1bf4088aeb580e8e8353c058dd4caf6acffa1bbc (patch) | |
tree | ce384f05e2f4ad685fbc34ab729de98f193c22ab /activerecord/lib | |
parent | 6303cef42c91639642d38a58112b4921927e2ce1 (diff) | |
download | rails-1bf4088aeb580e8e8353c058dd4caf6acffa1bbc.tar.gz rails-1bf4088aeb580e8e8353c058dd4caf6acffa1bbc.tar.bz2 rails-1bf4088aeb580e8e8353c058dd4caf6acffa1bbc.zip |
show name of the klass that has missing association
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/join_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb index e589959cf2..57fa6a8fc9 100644 --- a/activerecord/lib/active_record/associations/join_dependency.rb +++ b/activerecord/lib/active_record/associations/join_dependency.rb @@ -109,7 +109,7 @@ module ActiveRecord case associations when Symbol, String reflection = parent.reflections[associations.intern] or - raise ConfigurationError, "Association named '#{ associations }' was not found; perhaps you misspelled it?" + raise ConfigurationError, "Association named '#{ associations }' was not found on #{ parent.active_record.name }; perhaps you misspelled it?" unless join_association = find_join_association(reflection, parent) @reflections << reflection join_association = build_join_association(reflection, parent) |