diff options
author | Sam Ruby <rubys@intertwingly.net> | 2013-04-02 15:09:15 -0400 |
---|---|---|
committer | Sam Ruby <rubys@intertwingly.net> | 2013-04-02 15:09:15 -0400 |
commit | 04cda1848cb847c2bdad0bfc12160dc8d5547775 (patch) | |
tree | c0ce8e2c6c309b5e57ce67e9aee3c8eead6ec353 /actionpack/lib/action_controller/metal/http_authentication.rb | |
parent | 6871b2e6e00db64c4f5f7213e4d007479ed7f538 (diff) | |
download | rails-04cda1848cb847c2bdad0bfc12160dc8d5547775.tar.gz rails-04cda1848cb847c2bdad0bfc12160dc8d5547775.tar.bz2 rails-04cda1848cb847c2bdad0bfc12160dc8d5547775.zip |
Prefer find_by over dynamic finders in rdoc
Diffstat (limited to 'actionpack/lib/action_controller/metal/http_authentication.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index c7bb2dd147..158d552ec7 100644 --- a/actionpack/lib/action_controller/metal/http_authentication.rb +++ b/actionpack/lib/action_controller/metal/http_authentication.rb @@ -29,7 +29,7 @@ module ActionController # # protected # def set_account - # @account = Account.find_by_url_name(request.subdomains.first) + # @account = Account.find_by(url_name: request.subdomains.first) # end # # def authenticate @@ -345,7 +345,7 @@ module ActionController # # protected # def set_account - # @account = Account.find_by_url_name(request.subdomains.first) + # @account = Account.find_by(url_name: request.subdomains.first) # end # # def authenticate |