Method: Volt::ArrayModel#first

Defined in:
lib/volt/models/array_model.rb

#firstObject



156
157
158
159
160
161
162
# File 'lib/volt/models/array_model.rb', line 156

def first
  if persistor.is_a?(Persistors::ArrayStore)
    limit(1)[0]
  else
    self[0]
  end
end