# File lib/dm-core/associations/one_to_one.rb, line 73 def initialize(name, target_model, source_model, options = {}) klass = options.key?(:through) ? ManyToMany::Relationship : OneToMany::Relationship target_model ||= DataMapper::Inflector.camelize(name).freeze @relationship = klass.new(name, target_model, source_model, options) end