diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 770218b..3fe7be5 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -120,13 +120,6 @@ Style/MultipleComparison: Exclude: - 'lib/chrono_model/time_machine/time_query.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowedMethods. -# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with -Style/NestedParenthesizedCalls: - Exclude: - - 'lib/chrono_model/json.rb' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Strict, AllowedNumbers, AllowedPatterns. Style/NumericLiterals: diff --git a/lib/chrono_model/json.rb b/lib/chrono_model/json.rb index 54740a9..cb0a199 100644 --- a/lib/chrono_model/json.rb +++ b/lib/chrono_model/json.rb @@ -10,11 +10,11 @@ def create MSG adapter.execute 'CREATE OR REPLACE LANGUAGE plpythonu' - adapter.execute File.read(sql 'json_ops.sql') + adapter.execute File.read(sql('json_ops.sql')) end def drop - adapter.execute File.read(sql 'uninstall-json_ops.sql') + adapter.execute File.read(sql('uninstall-json_ops.sql')) adapter.execute 'DROP LANGUAGE IF EXISTS plpythonu' end