Add check for pipeline_enabled? that works for Rails 4