Class: Search::FindUserBySwipecardCode
- Inherits:
-
Search
- Object
- ActiveRecord::Base
- ApplicationRecord
- Search
- Search::FindUserBySwipecardCode
- Defined in:
- app/models/search/find_user_by_swipecard_code.rb
Instance Method Summary collapse
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods inherited from ApplicationRecord
alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Instance Method Details
#scope(criteria) ⇒ Object
3 4 5 |
# File 'app/models/search/find_user_by_swipecard_code.rb', line 3 def scope(criteria) User.with_swipecard_code(criteria['swipecard_code']) end |