diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 17:50:55 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-25 17:50:55 +0200 |
| commit | 26030c71c7b300c30367222f263d74b8d2142ecf (patch) | |
| tree | cd05051e7bc4e9252b0084f98b7c3df485c8c601 /app/controllers/rss_controller.rb | |
| parent | 7f26a8202556db3a584f1360950a671d2a60a1ea (diff) | |
Rails 5.2 application fixes
- Rename before_filter → before_action across all controllers
- Fix string conditions in validators to lambda syntax (node.rb)
- Fix publish_draft!: move staged slug/parent logic outside draft guard,
use move_to_child_of for parent changes, add nil guard for no-op calls
- Fix update_unique_names_of_children: use parent_id traversal instead
of lft/rgt descendants (awesome_nested_set 3.x lft/rgt update bug)
- Fix unique_path to return Array instead of String
- Fix Occurrence.delete_all syntax for Rails 5
- Fix Page.find_with_outdated_translations: use includes instead of all
- Fix outdated_translations?: use find instead of splat array
Diffstat (limited to 'app/controllers/rss_controller.rb')
| -rw-r--r-- | app/controllers/rss_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/rss_controller.rb b/app/controllers/rss_controller.rb index be9cd2c..4b47218 100644 --- a/app/controllers/rss_controller.rb +++ b/app/controllers/rss_controller.rb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | class RssController < ApplicationController | 1 | class RssController < ApplicationController |
| 2 | 2 | ||
| 3 | before_filter :authenticate, :only => :recent_changes | 3 | before_action :authenticate, :only => :recent_changes |
| 4 | before_filter :get_host | 4 | before_action :get_host |
| 5 | 5 | ||
| 6 | def updates | 6 | def updates |
| 7 | expires_in 31.minutes, :public => true | 7 | expires_in 31.minutes, :public => true |
