allows to be used with Rails 3