Workaround for Rails 4