@Daxter when I'm creating new rails4 app with --skip-sprockets parameter, assets parameter is nil in application.

> Rails.application.assets
 => nil

By default, in rails4 sprockets are enabled. So I think we should check if rails is version 4 and Rails.application.assets is not nil.