From a9dc45459abcd9437085f4dd0aa3c9d0e64e062f Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Mon, 8 Aug 2016 01:05:28 +0200 Subject: code gardening: removes redundant selfs A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required. --- actionview/test/template/url_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/test/template/url_helper_test.rb') diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index bbbeb39f3f..49ada352e0 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -626,7 +626,7 @@ class UrlHelperTest < ActiveSupport::TestCase end def protect_against_forgery? - self.request_forgery + request_forgery end def form_authenticity_token(*args) -- cgit v1.2.3