diff options
author | robertomiranda <rjmaltamar@gmail.com> | 2013-01-18 07:56:05 -0500 |
---|---|---|
committer | robertomiranda <rjmaltamar@gmail.com> | 2013-01-18 07:56:05 -0500 |
commit | 7baecc48028e2d0cb57936ad10b9102ed129c9f9 (patch) | |
tree | 77e65e64c592e9f75cb849f851eb4dedb376c2e1 /actionpack/lib/action_controller | |
parent | 4095c08729a188e6ebc24f86d60a10bc01053d9b (diff) | |
download | rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.tar.gz rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.tar.bz2 rails-7baecc48028e2d0cb57936ad10b9102ed129c9f9.zip |
User Rails 4 find_by
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/http_authentication.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_controller/test_case.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb index e295002b16..308b386d9a 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 @@ -344,7 +344,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 diff --git a/actionpack/lib/action_controller/test_case.rb b/actionpack/lib/action_controller/test_case.rb index d8206b573d..9a41b27108 100644 --- a/actionpack/lib/action_controller/test_case.rb +++ b/actionpack/lib/action_controller/test_case.rb @@ -275,7 +275,7 @@ module ActionController # assert_response :found # # # Assert that the controller really put the book in the database. - # assert_not_nil Book.find_by_title("Love Hina") + # assert_not_nil Book.find_by(title: "Love Hina") # end # end # |