Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 658 Bytes
require 'redmine'
Redmine::Plugin.register :bulk_time_entry_plugin do
name 'Bulk Time Entry'
author 'Eric Davis'
description 'This is a plugin to enter multiple time entries at one time.'
version '0.5.0'
requires_redmine :version_or_higher => '0.9.0'
menu :top_menu, :bulk_time_entry, {:controller => "bulk_time_entries", :action => 'index'},
:caption => :bulk_time_entry_title, :if => Proc.new{User.current.allowed_to?(:log_time, nil, :global => true)}
end
# Patches to the Redmine core.
Rails.configuration.to_prepare do
require_dependency 'time_entry'
TimeEntry.send(:include, BulkTimeEntryPlugin::Patches::TimeEntryPatch)
end