summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-05 11:08:05 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-05 13:12:40 +0200
commit23af161b79e45dec0d11e23b77032f9b7f5c12cf (patch)
tree8f7b34a6886f2766943928e075ff1c572d669d9c
parentb3acd5459c08f61b82799821ae09f17f4dcfec10 (diff)
downloadgitlab-ce-23af161b79e45dec0d11e23b77032f9b7f5c12cf.tar.gz
Rename parameters to params
-rw-r--r--app/serializers/base_serializer.rb8
-rw-r--r--app/serializers/group_child_serializer.rb2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/serializers/base_serializer.rb b/app/serializers/base_serializer.rb
index d78108480d3..8cade280b0c 100644
--- a/app/serializers/base_serializer.rb
+++ b/app/serializers/base_serializer.rb
@@ -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)
diff --git a/app/serializers/group_child_serializer.rb b/app/serializers/group_child_serializer.rb
index 6fa269ee5c0..6bae7ba334a 100644
--- a/app/serializers/group_child_serializer.rb
+++ b/app/serializers/group_child_serializer.rb
@@ -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|