Add check for pipeline_enabled? that works for Rails 4

Rails 4 removes the `enabled