yep, i see that in the docs here: https://bogomips.org/unicorn/Unicorn/Configurator.html (see: timeout)
mordof: I think the best thing to do is use nginx to group 500’s and respond with a consistent msg, ie: https://serverfault.com/questions/642705/request-timeout-issue-with-nginx-unicorn-and-rails (`error_page`)
thesubr00t: sorry just looking at this again, shouldn’t `attributes` be a class method in your BaseSerializer?
you call it as a class method: https://gist.github.com/anonymous/7c4c024dcbe1b5567680f30f7af98d8e#file-questions_serializer-rb-L2
sevenseacat: I’ve been reading ‘The Self-Driven Child’ and just finished the chapter on sleep. It’s amazing how poorly your mind behaves when sleep deprived. Even if you don’t have kids, I’d recommend the book - I’ve learned a lot
I’m having an N+1 issue but when I try and fix it I get back no results. `current_user.posts.includes(:voted)`. user has_many :posts, post belongs_to :voted, polymorphic: true. I get back  but when I do current_user.posts.flat_map(&:voted) I get back that record correctly. What am I missing?
yes, that’s where I’m doing it and if i do `to_sql` at the end of that statement i get back an empty string, “”
Last night one thread running a long task started spitting out 'PG::UnableToSend: no connection to the server'. I'm a little surprised the AR connection pool kept this connection open - in the future, is there a better way to reset connections if this occurs? I could rescue and do it manually but I can't be the first person to try and do this
question - I want to list all the Rack middlewares i'm using in a sinatra app - how can I do that? I see this answer http://stackoverflow.com/questions/4008028/get-ordered-list-of-middleware-in-a-generic-rack-application but it's only listing a few