Skip to content

Commit

Permalink
optional pluralization of participant references
Browse files Browse the repository at this point in the history
  • Loading branch information
danryan committed Sep 3, 2012
1 parent 90288ec commit 6d676cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/participant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def to_hash

def self.register(type)
@type = type
Mastermind.dashboard.register_participant "(.+)_#{type}", self, options
Mastermind.participants[Regexp.new("^(.+)_#{type}$")] = self
Mastermind.dashboard.register_participant "(.+)_#{type}[s]?", self, options
Mastermind.participants[Regexp.new("^(.+)_#{type}s?$")] = self
end

def on_workitem
Expand Down

0 comments on commit 6d676cc

Please sign in to comment.