Rename parameters to params
This commit is contained in:
parent
b3acd5459c
commit
23af161b79
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue