mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-30 06:31:16 +00:00
Style/SuperArguments
Call super without arguments and parentheses when the signature is identical.
This commit is contained in:
@@ -7,7 +7,7 @@ module Reporting
|
||||
attr_accessor :parameters
|
||||
|
||||
def initialize(user, params = {}, render: false)
|
||||
super(user, params, render:)
|
||||
super
|
||||
end
|
||||
|
||||
def search
|
||||
|
||||
@@ -7,7 +7,7 @@ module Reporting
|
||||
attr_accessor :permissions
|
||||
|
||||
def initialize(user, params = {}, render: false)
|
||||
super(user, params, render:)
|
||||
super
|
||||
@permissions = Permissions.new(user)
|
||||
end
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ module Reporting
|
||||
attr_accessor :permissions, :parameters
|
||||
|
||||
def initialize(user, params = {}, render: false)
|
||||
super(user, params, render:)
|
||||
super
|
||||
@parameters = Parameters.new(params.fetch(:q, {}))
|
||||
@parameters.validate!
|
||||
@permissions = Permissions.new(user)
|
||||
|
||||
@@ -28,7 +28,7 @@ module Reporting
|
||||
self.shipping_method_ids = []
|
||||
self.payment_method_ids = []
|
||||
|
||||
super(attributes)
|
||||
super
|
||||
|
||||
cleanup_arrays
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user