diff options
Diffstat (limited to 'lib/update_importer.rb')
| -rw-r--r-- | lib/update_importer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/update_importer.rb b/lib/update_importer.rb index 103ac5a..2978c43 100644 --- a/lib/update_importer.rb +++ b/lib/update_importer.rb | |||
| @@ -82,7 +82,7 @@ class UpdateImporter | |||
| 82 | I18n.locale = lang | 82 | I18n.locale = lang |
| 83 | 83 | ||
| 84 | unless node.head | 84 | unless node.head |
| 85 | page.update_attributes( | 85 | page.update( |
| 86 | :title => xhtml.elements['title'].get_text.to_s, | 86 | :title => xhtml.elements['title'].get_text.to_s, |
| 87 | :abstract => xhtml.elements['abstract'].get_text.to_s, | 87 | :abstract => xhtml.elements['abstract'].get_text.to_s, |
| 88 | :body => body | 88 | :body => body |
| @@ -176,7 +176,7 @@ class UpdateImporter | |||
| 176 | unless tmp_event = node.event | 176 | unless tmp_event = node.event |
| 177 | tmp_event = Event.create! event_options.merge({:node_id => node.id}) | 177 | tmp_event = Event.create! event_options.merge({:node_id => node.id}) |
| 178 | else | 178 | else |
| 179 | tmp_event.update_attributes event_options | 179 | tmp_event.update event_options |
| 180 | end | 180 | end |
| 181 | end | 181 | end |
| 182 | end | 182 | end |
