Skip to content

Instantly share code, notes, and snippets.

@NilsHaldenwang
Created September 30, 2011 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NilsHaldenwang/1254390 to your computer and use it in GitHub Desktop.
Save NilsHaldenwang/1254390 to your computer and use it in GitHub Desktop.
LectureInstanceParticipation::ROLES.keys.each do |role|
define_method(role.pluralize) do
participants_with_role(role.to_sym)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment