diff --git a/.rubocop.yml b/.rubocop.yml index d94e546..c8302f4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -31,5 +31,8 @@ Rails/ApplicationRecord: Exclude: - 'spec/**/*' -Style/TrailingCommaInLiteral: +Style/TrailingCommaInHashLiteral: + EnforcedStyleForMultiline: comma + +Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: comma diff --git a/administrate-field-belongs_to_search.gemspec b/administrate-field-belongs_to_search.gemspec index 3ff7eb2..d4ea1c9 100755 --- a/administrate-field-belongs_to_search.gemspec +++ b/administrate-field-belongs_to_search.gemspec @@ -1,6 +1,4 @@ -# coding: utf-8 - -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |gem|