Is Discourse using Ruby 2.0? Howto use Ruby 2.2

Yeah probably you need to use a the before_web hook

I would not worry about it, we are going to upgrade Ruby to 2.3.1 next week