Avoid swallowing exceptions unnecessarily.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class CountsController < ApplicationController
|
||||
respond_to :xml, :json
|
||||
rescue_from Post::TimeoutError, with: :rescue_exception
|
||||
|
||||
def posts
|
||||
@count = Post.fast_count(
|
||||
|
||||
Reference in New Issue
Block a user