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:
parent
049cd824c0
commit
060284f45e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue