Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-31 22:27:03 +0300
committerAlex Braha Stoll <alexbrahastoll@gmail.com>2016-12-31 22:27:03 +0300
commit48417893d7456dc0d46b0a514a2326cc8ce6076f (patch)
tree3c39ca881f25fd2cafd9fbe3ba3693874c2325f7 /app/models/wiki_directory.rb
parentb0ad4e0e87c642efefa840eeeea5824191e81405 (diff)
Remove directories as one of the attributes of WikiDirectory
Diffstat (limited to 'app/models/wiki_directory.rb')
-rw-r--r--app/models/wiki_directory.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/wiki_directory.rb b/app/models/wiki_directory.rb
index 561e5a497bc..9340fc2dbbe 100644
--- a/app/models/wiki_directory.rb
+++ b/app/models/wiki_directory.rb
@@ -1,14 +1,13 @@
class WikiDirectory
include ActiveModel::Validations
- attr_accessor :slug, :pages, :directories
+ attr_accessor :slug, :pages
validates :slug, presence: true
- def initialize(slug, pages = [], directories = [])
+ def initialize(slug, pages = [])
@slug = slug
@pages = pages
- @directories = directories
end
# Relative path to the partial to be used when rendering collections