Commit 23af161b authored by Bob Van Landuyt's avatar Bob Van Landuyt

Rename parameters to params

parent b3acd545
class BaseSerializer class BaseSerializer
attr_reader :parameters attr_reader :params
def initialize(parameters = {}) def initialize(params = {})
@parameters = parameters @params = params
@request = EntityRequest.new(parameters) @request = EntityRequest.new(params)
end end
def represent(resource, opts = {}, entity_class = nil) def represent(resource, opts = {}, entity_class = nil)
......
...@@ -33,7 +33,7 @@ class GroupChildSerializer < BaseSerializer ...@@ -33,7 +33,7 @@ class GroupChildSerializer < BaseSerializer
end end
def represent_hierarchy(hierarchy, opts) def represent_hierarchy(hierarchy, opts)
serializer = self.class.new(parameters) serializer = self.class.new(params)
if hierarchy.is_a?(Hash) if hierarchy.is_a?(Hash)
hierarchy.map do |parent, children| 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