Identifiers will add attr_accessor as well for convenience
This commit is contained in:
parent
049cd824c0
commit
060284f45e
@ -10,7 +10,8 @@ module Identification
|
||||
|
||||
class_methods do
|
||||
def identified_by(*identifiers)
|
||||
self.identifiers += identifiers
|
||||
Array(identifiers).each { |identifier| attr_accessor identifier }
|
||||
self.identifiers += identifiers
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user