Module: Care::AutoFinder::ByIds
- Defined in:
- lib/care/auto_finder/by_ids.rb
Overview
Содержит методы для фильтрации по ids
Instance Method Summary collapse
Instance Method Details
#ids(items) ⇒ Object
20 21 22 |
# File 'lib/care/auto_finder/by_ids.rb', line 20 def ids(items) params[:ids].present? ? items.where(id: params[:ids]) : items end |