To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_tags / lib / redmine_tags / patches / projects_controller_patch.rb @ 730:4a9bb3b8d5cd
History | View | Annotate | Download (558 Bytes)
| 1 | 730:4a9bb3b8d5cd | luis | require_dependency 'projects_controller'
|
|---|---|---|---|
| 2 | |||
| 3 | module RedmineTags |
||
| 4 | module Patches |
||
| 5 | module ProjectsControllerPatch |
||
| 6 | def self.included(base) |
||
| 7 | base.send(:include, InstanceMethods) |
||
| 8 | base.class_eval do
|
||
| 9 | unloadable |
||
| 10 | before_filter :add_tags_to_project, :only => [:save, :update] |
||
| 11 | end
|
||
| 12 | end
|
||
| 13 | |||
| 14 | module InstanceMethods |
||
| 15 | |||
| 16 | |||
| 17 | def add_tags_to_project |
||
| 18 | # debugger
|
||
| 19 | logger.error { "TAG_LIST-->#{params[:project][:tag_list]}" }
|
||
| 20 | end
|
||
| 21 | end
|
||
| 22 | end
|
||
| 23 | end
|
||
| 24 | end
|
||
| 25 | |||
| 26 | |||
| 27 |