Class: Projects::GroupGroupLinksFinder
- Inherits:
-
Object
- Object
- Projects::GroupGroupLinksFinder
- Defined in:
- app/finders/projects/group_group_links_finder.rb
Instance Method Summary collapse
-
#execute ⇒ ActiveRecord::Relation
Executes the finder and returns group links.
-
#initialize(project, params = {}) ⇒ GroupGroupLinksFinder
constructor
A new instance of GroupGroupLinksFinder.
Constructor Details
#initialize(project, params = {}) ⇒ GroupGroupLinksFinder
Returns a new instance of GroupGroupLinksFinder.
10 11 12 13 |
# File 'app/finders/projects/group_group_links_finder.rb', line 10 def initialize(project, params = {}) @project = project @params = params end |
Instance Method Details
#execute ⇒ ActiveRecord::Relation
Executes the finder and returns group links.
18 19 20 21 22 |
# File 'app/finders/projects/group_group_links_finder.rb', line 18 def execute return GroupGroupLink.none unless project.group by_search(collection) end |