Method: ActiveRecord::SpawnMethods#spawn

Defined in:
activerecord/lib/active_record/relation/spawn_methods.rb

#spawnObject

:nodoc:



9
10
11
# File 'activerecord/lib/active_record/relation/spawn_methods.rb', line 9

def spawn # :nodoc:
  already_in_scope?(model.scope_registry) ? model.all : clone
end