Method: Octopus::AssociationShardTracking#has_many

Defined in:
lib/octopus/association_shard_tracking.rb

#has_many(name, scope = nil, **options, &extension) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/octopus/association_shard_tracking.rb', line 38

def has_many(name, scope = nil, **options, &extension)
  if options == {} && scope.is_a?(Hash)
    default_octopus_opts(scope)
  else
    default_octopus_opts(options)
  end
  super
end