Checking for asset pipeline

In some cases asset pipeline (sprockets) used in Rails 3.0 and current checking for Rails version doesn't work.
Probably it's better to check for Sprockets definition. I'm using this fix in my project with Rails 3.0.