Method: Sequel::Model::Associations::OneToManyAssociationReflection#cloneable?

Defined in:
lib/sequel/model/associations.rb

#cloneable?(ref) ⇒ Boolean

one_to_many and one_to_one associations can be clones

Returns:

  • (Boolean)


1043
1044
1045
# File 'lib/sequel/model/associations.rb', line 1043

def cloneable?(ref)
  ref[:type] == :one_to_many || ref[:type] == :one_to_one
end