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:
authorJob van der Voort <jobvandervoort@gmail.com>2015-04-21 17:21:51 +0300
committerJob van der Voort <jobvandervoort@gmail.com>2015-04-21 17:21:51 +0300
commita8e93b7f51d968c1380ed210499869b62b07fd15 (patch)
treec864e80dfd9cf4f83fcede678acc986e3a125bf5 /app/finders/README.md
parent0625b15a481b3a3edd88110b3c18031ad9068d2f (diff)
Version 7.10.0.rc5v7.10.0.rc5
Diffstat (limited to 'app/finders/README.md')
-rw-r--r--app/finders/README.md22
1 files changed, 0 insertions, 22 deletions
diff --git a/app/finders/README.md b/app/finders/README.md
deleted file mode 100644
index 1f46518d230..00000000000
--- a/app/finders/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# Finders
-
-This type of classes responsible for collection items based on different conditions.
-To prevent lookup methods in models like this:
-
-```ruby
-class Project
- def issues_for_user_filtered_by(user, filter)
- # A lot of logic not related to project model itself
- end
-end
-
-issues = project.issues_for_user_filtered_by(user, params)
-```
-
-Better use this:
-
-```ruby
-issues = IssuesFinder.new.execute(project, user, filter)
-```
-
-It will help keep models thiner.