1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

View file

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