Method: Effective::DatatableColumnTool#scope
- Defined in:
- app/models/effective/datatable_column_tool.rb
#scope(collection) ⇒ Object
53 54 55 56 57 |
# File 'app/models/effective/datatable_column_tool.rb', line 53 def scope(collection) return collection unless scoped.present? collection.send(scoped[:name], *scoped[:args]) end |