Identifiers will add attr_accessor as well for convenience

This commit is contained in:
David Heinemeier Hansson 2015-07-07 22:28:02 +02:00
parent 049cd824c0
commit 060284f45e

@ -10,7 +10,8 @@ module Identification
class_methods do class_methods do
def identified_by(*identifiers) def identified_by(*identifiers)
self.identifiers += identifiers Array(identifiers).each { |identifier| attr_accessor identifier }
self.identifiers += identifiers
end end
end end