Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created September 25, 2009 15:40
Show Gist options
  • Save edavis10/193632 to your computer and use it in GitHub Desktop.
Save edavis10/193632 to your computer and use it in GitHub Desktop.
class DefaultAssignProjectHook < Redmine::Hook::ViewListener
# context:
# * :form - the form builder
# * :project - the current project
def view_projects_form(context={})
return content_tag(:p,
context[:form].select(:default_assignee_id, context[:project].assignable_users.collect {|user| [user.name, user.id]}, {:include_blank => :none}))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment