Class: ApplicationsFinder
- Inherits:
-
Object
- Object
- ApplicationsFinder
- Defined in:
- app/finders/applications_finder.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(params = {}) ⇒ ApplicationsFinder
constructor
A new instance of ApplicationsFinder.
Constructor Details
#initialize(params = {}) ⇒ ApplicationsFinder
Returns a new instance of ApplicationsFinder.
6 7 8 |
# File 'app/finders/applications_finder.rb', line 6 def initialize(params = {}) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'app/finders/applications_finder.rb', line 4 def params @params end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 |
# File 'app/finders/applications_finder.rb', line 10 def execute applications = Doorkeeper::Application.where(owner_id: nil) # rubocop: disable CodeReuse/ActiveRecord by_id(applications) end |