diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-10-05 16:39:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 16:39:38 -0400 |
commit | 8c9a93090bff5f7350f2b22de5d37d863feffa53 (patch) | |
tree | 3e94bbb51f8476c126a2cd655a7ff93e7e296e59 /activerecord | |
parent | 9cbebd70eae7aa78a5b165dd3cae8e53c9a8ab83 (diff) | |
parent | 8a8ac422d8c388bf5f39ae2e6ec3ae84780186e7 (diff) | |
download | rails-8c9a93090bff5f7350f2b22de5d37d863feffa53.tar.gz rails-8c9a93090bff5f7350f2b22de5d37d863feffa53.tar.bz2 rails-8c9a93090bff5f7350f2b22de5d37d863feffa53.zip |
Merge pull request #30809 from meganemura/use-callee
Use __callee__ to pass alias instead of original method name
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index c88603fde2..e76ad05b71 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -441,7 +441,7 @@ module ActiveRecord # => SELECT "users".* FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id" # def left_outer_joins(*args) - check_if_method_has_arguments!(:left_outer_joins, args) + check_if_method_has_arguments!(__callee__, args) args.compact! args.flatten! |