diff options
| -rw-r--r-- | app/helpers/content_helper.rb | 2 | ||||
| -rw-r--r-- | config/initializers/globalize.rb | 0 | ||||
| -rw-r--r-- | config/initializers/xmlparser.rb | 6 |
3 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 11cfbc7..8b16462 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -63,7 +63,7 @@ module ContentHelper | |||
| 63 | options = {} | 63 | options = {} |
| 64 | 64 | ||
| 65 | begin | 65 | begin |
| 66 | if content =~ /<p><aggregate([^<>]*)><\/p>/ | 66 | if content =~ /<aggregate([^<>]*)>/ |
| 67 | tag = $~.to_s | 67 | tag = $~.to_s |
| 68 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) | 68 | matched_data = $1.scan(/\w+\=\"[a-zA-Z\s\/_\d,]*\"/) |
| 69 | 69 | ||
diff --git a/config/initializers/globalize.rb b/config/initializers/globalize.rb deleted file mode 100644 index e69de29..0000000 --- a/config/initializers/globalize.rb +++ /dev/null | |||
diff --git a/config/initializers/xmlparser.rb b/config/initializers/xmlparser.rb new file mode 100644 index 0000000..ba8660a --- /dev/null +++ b/config/initializers/xmlparser.rb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | class XML::Node | ||
| 2 | def replace_with(other) | ||
| 3 | self.next = other | ||
| 4 | remove! | ||
| 5 | end | ||
| 6 | end \ No newline at end of file | ||
