Created
September 25, 2009 15:40
-
-
Save edavis10/193632 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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