BigW Consortium Gitlab

Commit 23af161b by Bob Van Landuyt

Rename parameters to params

parent b3acd545
class BaseSerializer
attr_reader :parameters
attr_reader :params
def initialize(parameters = {})
@parameters = parameters
@request = EntityRequest.new(parameters)
def initialize(params = {})
@params = params
@request = EntityRequest.new(params)
end
def represent(resource, opts = {}, entity_class = nil)
......
......@@ -33,7 +33,7 @@ class GroupChildSerializer < BaseSerializer
end
def represent_hierarchy(hierarchy, opts)
serializer = self.class.new(parameters)
serializer = self.class.new(params)
if hierarchy.is_a?(Hash)
hierarchy.map do |parent, children|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment