Supports Rails 4