class MultipleMan::Identity
Attributes
record[RW]
Public Class Methods
build(record, options)
click to toggle source
# File lib/multiple_man/identity.rb, line 3 def self.build(record, options) if options[:identifier].present? SingleField.new(record, options[:identifier]) else MultipleField.new(record, options[:identify_by]) end end
new(record)
click to toggle source
# File lib/multiple_man/identity.rb, line 11 def initialize(record) self.record = record end