diff options
| author | hukl <hukl@eight.local> | 2009-02-02 23:46:46 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-02 23:46:46 +0100 |
| commit | 1bbeefe805efba28ef9c237a1c27f3f1ce1d5dc0 (patch) | |
| tree | af9103e8e23b097a930f6fa6930dca470d657043 /app/helpers | |
| parent | 1c8bcc58d410db6d7eb5f1629813f08f78f47fa1 (diff) | |
refactored the whole tagging thing. now using
acts_as_taggable_on_steroids instead of a
homebrew solution
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/content_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 3cf3488..385bca0 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -10,7 +10,7 @@ module ContentHelper | |||
| 10 | begin | 10 | begin |
| 11 | if content =~ /<aggregate([^<>]*)>/ | 11 | if content =~ /<aggregate([^<>]*)>/ |
| 12 | tag = $~.to_s | 12 | tag = $~.to_s |
| 13 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d]*\"/) | 13 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) |
| 14 | 14 | ||
| 15 | matched_data.each do |data| | 15 | matched_data.each do |data| |
| 16 | splitted_data = data.split("=") | 16 | splitted_data = data.split("=") |
| @@ -18,6 +18,8 @@ module ContentHelper | |||
| 18 | end | 18 | end |
| 19 | 19 | ||
| 20 | content.sub(tag, render_collection(options)) | 20 | content.sub(tag, render_collection(options)) |
| 21 | else | ||
| 22 | content | ||
| 21 | end | 23 | end |
| 22 | 24 | ||
| 23 | rescue | 25 | rescue |
