Skip to content

Commit

Permalink
Call super without arguments and parentheses when the signature is id…
Browse files Browse the repository at this point in the history
…entical
  • Loading branch information
marcosgz committed Jul 29, 2024
1 parent d506fbe commit 2093b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/esse/plugins/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module RepositoryClassMethods
# @option options [Symbol] :batch_size The batch size for the collection
def collection(*args, **kwargs, &block)
unless model_or_relation?(args.first)
return super(*args, **kwargs, &block)
return super
end
model_class = args.shift

Expand Down

0 comments on commit 2093b71

Please sign in to comment.