Commit 0eefb75f authored by Robert Schilling's avatar Robert Schilling
Browse files

Merge pull request #7991 from cirosantilli/app-finders-readme

Improve formatting of app/finders/README.md [failure unrelated]
# Finders # Finders
This type of classes responsible for collectiong items based on different conditions. This type of classes responsible for collection items based on different conditions.
To prevent lookup methods in models like this: To prevent lookup methods in models like this:
```ruby ```ruby
class Project class Project
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
issues = project.issues_for_user_filtered_by(user, params) issues = project.issues_for_user_filtered_by(user, params)
``` ```
Better use this: Better use this:
```ruby ```ruby
issues = IssuesFinder.new.execute(project, user, filter) issues = IssuesFinder.new.execute(project, user, filter)
``` ```
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
```ruby ```ruby
issues = IssuesFinder.new.execute(project, user, filter) issues = IssuesFinder.new.execute(project, user, filter)
``` ```
It will help keep models thiner It will help keep models thiner.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment