Rename parameters to params

This commit is contained in:
Bob Van Landuyt 2017-10-05 11:08:05 +02:00
parent b3acd5459c
commit 23af161b79
2 changed files with 5 additions and 5 deletions

View file

@ -1,9 +1,9 @@
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)

View file

@ -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|