Module: GoldRecord::ClassMethods

Defined in:
lib/gold_record/base.rb

Instance Method Summary collapse

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, options)
  find_one_without_uuid(GoldRecord::UUID.coerce(id), options)
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, options)
  ids = ids.map { |id| GoldRecord::UUID.coerce(id) }
  ids = ids.uniq # must do this after coercion
  find_some_without_uuid(ids, options)
end

#gold_record?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/gold_record/base.rb', line 6

def gold_record?
  true
end