comparison plugins/redmine_checkout/lib/checkout/settings_helper_patch.rb @ 1117:b4b72f1eb644 redmine-2.2-integration

Moved all the plugins from the vendor folder to the application root folder.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 08 Jan 2013 12:32:05 +0000
parents vendor/plugins/redmine_checkout/lib/checkout/settings_helper_patch.rb@020926a36823
children
comparison
equal deleted inserted replaced
1116:bb32da3bea34 1117:b4b72f1eb644
1 require_dependency 'settings_helper'
2
3 module Checkout
4 module SettingsHelperPatch
5 def self.included(base) # :nodoc:
6 base.send(:include, InstanceMethods)
7
8 base.class_eval do
9 alias_method_chain :administration_settings_tabs, :checkout
10 end
11 end
12
13 module InstanceMethods
14 def administration_settings_tabs_with_checkout
15 tabs = administration_settings_tabs_without_checkout
16 tabs << {:name => 'checkout', :partial => 'settings/checkout', :label => :label_checkout}
17 end
18 end
19 end
20 end
21
22 SettingsHelper.send(:include, Checkout::SettingsHelperPatch)
23