aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-12-14 08:49:07 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-12-14 08:58:39 +0900
commit2f6105e49411e6c2a4603a7bf828d3fb4dfd0601 (patch)
tree07e15803fbd830befe4687c0464395bc4f83c893 /activerecord
parenta6d065e39f9285119d75a05ee46c659f8b3c0db8 (diff)
downloadrails-2f6105e49411e6c2a4603a7bf828d3fb4dfd0601.tar.gz
rails-2f6105e49411e6c2a4603a7bf828d3fb4dfd0601.tar.bz2
rails-2f6105e49411e6c2a4603a7bf828d3fb4dfd0601.zip
fix new warning in ruby 2.4
This fixes the following warning. ``` test/caching_test.rb:986: warning: parentheses after method name is interpreted as test/caching_test.rb:986: warning: an argument list, not a decomposed argument test/cases/adapters/mysql2/reserved_word_test.rb:146: warning: parentheses after method name is interpreted as test/cases/adapters/mysql2/reserved_word_test.rb:146: warning: an argument list, not a decomposed argument ``` Ref: https://github.com/ruby/ruby/commit/65e27c8b138d6959608658ffce2fa761842b8d24
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/mysql2/reserved_word_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb b/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb
index b400f4d2f9..2c778b1150 100644
--- a/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb
+++ b/activerecord/test/cases/adapters/mysql2/reserved_word_test.rb
@@ -143,7 +143,7 @@ class Mysql2ReservedWordTest < ActiveRecord::Mysql2TestCase
end
# custom create table, uses execute on connection to create a table, note: escapes table_name, does NOT escape columns
- def create_tables_directly (tables, connection = @connection)
+ def create_tables_directly(tables, connection = @connection)
tables.each do |table_name, column_properties|
connection.execute("CREATE TABLE `#{table_name}` ( #{column_properties} )")
end