Class: Autocomplete::ActsAsTaggableOn::TagsFinder
- Inherits:
-
Object
- Object
- Autocomplete::ActsAsTaggableOn::TagsFinder
- Defined in:
- app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb
Constant Summary collapse
- LIMIT =
20
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(params:) ⇒ TagsFinder
constructor
A new instance of TagsFinder.
Constructor Details
#initialize(params:) ⇒ TagsFinder
Returns a new instance of TagsFinder.
8 9 10 |
# File 'app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb', line 8 def initialize(params:) @params = params end |
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 |
# File 'app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb', line 12 def execute = = filter_by_name() limit() end |