diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 16:17:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-24 16:17:16 +0200 |
| commit | 75670df5b8a5700c48ac8cb41f8d1732b5738402 (patch) | |
| tree | 0611ab89cd9fa6aa5c1c7cc44df28de4388c608e /app/models/node.rb | |
| parent | 61dc69cc5d8089ed9f96bc65dc64de6e075f70cf (diff) | |
Fix tagged content aggregator, assets path, and add regression tests
- Replace tagged_with calls in Page.aggregate, TagsController, RssController
with direct SQL joins (acts-as-taggable-on 3.5 broken on Rails 3.2)
- Fix Paperclip :path/:url to use plain :id format matching existing uploads
- Add proper regression tests for aggregator, tags, and rss controllers
- Fix assert_select assertions to target div.body div.article_partial
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index 1b80565..3cab7ed 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -146,7 +146,7 @@ class Node < ActiveRecord::Base | |||
| 146 | 146 | ||
| 147 | # returns an array with all parts of a unique_name rather than a string | 147 | # returns an array with all parts of a unique_name rather than a string |
| 148 | def unique_path | 148 | def unique_path |
| 149 | unique_name.split("/") rescue [unique_name] | 149 | unique_name.to_s |
| 150 | end | 150 | end |
| 151 | 151 | ||
| 152 | # returns array with pages up to root excluding root | 152 | # returns array with pages up to root excluding root |
