diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-07-04 17:02:01 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-09 16:13:08 +0300 |
commit | 3bfe30662436e48d4324b8fac5c1634df4a7cf7f (patch) | |
tree | 3f772a44196e249ded23b453b89799095cbcc5d8 /app/models/user.rb | |
parent | 9286f5b9340f92131c320c231a5fb3e51c23bf04 (diff) |
Resolve Naming/UncommunicativeMethod
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 47542ab122a..1c5d39db118 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1333,8 +1333,8 @@ class User < ActiveRecord::Base end end - def self.unique_internal(scope, username, email_pattern, &b) - scope.first || create_unique_internal(scope, username, email_pattern, &b) + def self.unique_internal(scope, username, email_pattern, &block) + scope.first || create_unique_internal(scope, username, email_pattern, &block) end def self.create_unique_internal(scope, username, email_pattern, &creation_block) |