Module: GoldRecord::ClassMethods
- Defined in:
- lib/gold_record/base.rb
Instance Method Summary collapse
- #find_one_with_uuid(id, options) ⇒ Object
- #find_some_with_uuid(ids, options) ⇒ Object
- #gold_record? ⇒ Boolean
Instance Method Details
#find_one_with_uuid(id, options) ⇒ Object
10 11 12 |
# File 'lib/gold_record/base.rb', line 10 def find_one_with_uuid(id, ) find_one_without_uuid(GoldRecord::UUID.coerce(id), ) end |
#find_some_with_uuid(ids, options) ⇒ Object
14 15 16 17 18 |
# File 'lib/gold_record/base.rb', line 14 def find_some_with_uuid(ids, ) ids = ids.map { |id| GoldRecord::UUID.coerce(id) } ids = ids.uniq # must do this after coercion find_some_without_uuid(ids, ) end |
#gold_record? ⇒ Boolean
6 7 8 |
# File 'lib/gold_record/base.rb', line 6 def gold_record? true end |