Revision 442:753f1380d6bc vendor/plugins/acts_as_customizable/lib
| vendor/plugins/acts_as_customizable/lib/.svn/entries | ||
|---|---|---|
| 1 | 1 |
10 |
| 2 | 2 |
|
| 3 | 3 |
dir |
| 4 |
4993
|
|
| 5 |
http://redmine.rubyforge.org/svn/trunk/vendor/plugins/acts_as_customizable/lib
|
|
| 4 |
6000
|
|
| 5 |
http://redmine.rubyforge.org/svn/branches/1.2-stable/vendor/plugins/acts_as_customizable/lib
|
|
| 6 | 6 |
http://redmine.rubyforge.org/svn |
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
2011-02-20T14:26:23.957459Z
|
|
| 11 |
4891
|
|
| 10 |
2011-04-01T13:44:58.700463Z
|
|
| 11 |
5272
|
|
| 12 | 12 |
jplang |
| 13 | 13 |
|
| 14 | 14 |
|
| ... | ... | |
| 32 | 32 |
|
| 33 | 33 |
|
| 34 | 34 |
|
| 35 |
2011-03-03T11:40:18.000000Z
|
|
| 36 |
2a7f0cd4a6b5d7f58a12567604697208
|
|
| 37 |
2011-02-20T14:26:23.957459Z
|
|
| 38 |
4891
|
|
| 35 |
2011-06-06T13:18:33.000000Z
|
|
| 36 |
d72670b67576182b51bf4d8b4096cac8
|
|
| 37 |
2011-04-01T13:44:58.700463Z
|
|
| 38 |
5272
|
|
| 39 | 39 |
jplang |
| 40 | 40 |
has-props |
| 41 | 41 |
|
| ... | ... | |
| 58 | 58 |
|
| 59 | 59 |
|
| 60 | 60 |
|
| 61 |
4469
|
|
| 61 |
4490
|
|
| 62 | 62 |
|
| vendor/plugins/acts_as_customizable/lib/.svn/text-base/acts_as_customizable.rb.svn-base | ||
|---|---|---|
| 1 |
# redMine - project management software
|
|
| 2 |
# Copyright (C) 2006-2008 Jean-Philippe Lang
|
|
| 1 |
# Redmine - project management software
|
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang
|
|
| 3 | 3 |
# |
| 4 | 4 |
# This program is free software; you can redistribute it and/or |
| 5 | 5 |
# modify it under the terms of the GNU General Public License |
| ... | ... | |
| 75 | 75 |
end |
| 76 | 76 |
|
| 77 | 77 |
def custom_field_values |
| 78 |
@custom_field_values ||= available_custom_fields.collect { |x| custom_values.detect { |v| v.custom_field == x } || custom_values.build(:custom_field => x, :value => nil) }
|
|
| 78 |
@custom_field_values ||= available_custom_fields.collect { |x| custom_values.detect { |v| v.custom_field == x } || custom_values.build(:customized => self, :custom_field => x, :value => nil) }
|
|
| 79 | 79 |
end |
| 80 | 80 |
|
| 81 | 81 |
def visible_custom_field_values |
| vendor/plugins/acts_as_customizable/lib/acts_as_customizable.rb | ||
|---|---|---|
| 1 |
# redMine - project management software
|
|
| 2 |
# Copyright (C) 2006-2008 Jean-Philippe Lang
|
|
| 1 |
# Redmine - project management software
|
|
| 2 |
# Copyright (C) 2006-2011 Jean-Philippe Lang
|
|
| 3 | 3 |
# |
| 4 | 4 |
# This program is free software; you can redistribute it and/or |
| 5 | 5 |
# modify it under the terms of the GNU General Public License |
| ... | ... | |
| 75 | 75 |
end |
| 76 | 76 |
|
| 77 | 77 |
def custom_field_values |
| 78 |
@custom_field_values ||= available_custom_fields.collect { |x| custom_values.detect { |v| v.custom_field == x } || custom_values.build(:custom_field => x, :value => nil) }
|
|
| 78 |
@custom_field_values ||= available_custom_fields.collect { |x| custom_values.detect { |v| v.custom_field == x } || custom_values.build(:customized => self, :custom_field => x, :value => nil) }
|
|
| 79 | 79 |
end |
| 80 | 80 |
|
| 81 | 81 |
def visible_custom_field_values |
Also available in: Unified diff