diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 366e6b4..5a52118 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -32,13 +32,6 @@ Layout/MultilineMethodCallBraceLayout: Exclude: - 'lib/hawk/model/collection.rb' -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: aligned, indented, indented_relative_to_receiver -Layout/MultilineMethodCallIndentation: - Exclude: - - 'lib/hawk/model/association.rb' - # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperator: Exclude: diff --git a/lib/hawk/model/association.rb b/lib/hawk/model/association.rb index 6bac99c..6cc44f8 100644 --- a/lib/hawk/model/association.rb +++ b/lib/hawk/model/association.rb @@ -296,7 +296,7 @@ def #{entity} return unless (id = self.attributes.fetch(key.to_s, nil)) instance = self.class.model_class_for(klass). - find(id, clean_inherited_params(self.params, params)) + find(id, clean_inherited_params(self.params, params)) instance_variable_set(ivar, instance) end