Skip to content

Commit

Permalink
[modify] skip calling create_history_trash to stop creating history/t…
Browse files Browse the repository at this point in the history
…rash
  • Loading branch information
sunny4381 committed Mar 25, 2021
1 parent dda0a9d commit fcf2385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/rss/page.rb
Expand Up @@ -11,4 +11,6 @@ class Rss::Page

store_in_repl_master
default_scope ->{ where(route: "rss/page") }

skip_callback(:destroy, :before, :create_history_trash)
end

0 comments on commit fcf2385

Please sign in to comment.