diff options
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 |
