Add check for pipeline_enabled? that works for Rails 4
Merge pull request #359 from rossta/rails_4_support

Add check for pipeline_enabled? that works for Rails 4