Module: Uuidable::ActiveRecord::Finder
- Included in:
- ClassMethods
- Defined in:
- lib/uuidable/active_record.rb
Instance Method Summary collapse
Instance Method Details
#find(*args) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/uuidable/active_record.rb', line 11 def find(*args) if args.first.is_a?(String) && args.first&.match(UUIDTools::UUID_REGEXP) find_by_uuid!(*args) else super end end |