Added rdoc comments and using the Base class now

This commit is contained in:
Eric Davis committed 2008-06-11 09:20:22 -07:00
1 parent 8150cfcabc
commit 191221908d
4 files changed
+67 -46

No files matched your search

+11 -23
View File
@@ -1,31 +1,19 @@
class BudgetProjectHook
# http://snippets.dzone.com/posts/show/1799
def self.help
Helper.instance
end
class Helper
include Singleton
include ActionView::Helpers::TagHelper
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::FormHelper
include ActionView::Helpers::FormTagHelper
include ActionView::Helpers::FormOptionsHelper
include ActionView::Helpers::JavaScriptHelper
include ActionView::Helpers::PrototypeHelper
include ActionController::UrlWriter
def protect_against_forgery?
false
end
end
# Hooks to attach to the Redmine Projects. They are attached in init.rb by the
# +add_hook+ method
class BudgetProjectHook < Redmine::Plugin::Hook::Base
# Renders an additional table header to the membership setting
#
# Context: none
def self.member_list_header(context ={ })
return "<th>#{GLoc.l(:label_member_rate) }</th>"
end
# Renders an AJAX from to update the member's billing rate
#
# Context:
# * :member => Current Member record
#
def self.member_list_column_three(context = { })
# Build a form_remote_tag by hand since this isn't in the scope of a controller