Allow sprockets object to be passed.

Rails 4 doesn't set Rails.configuration.assets.digests to a hash
of digests like rails 3 did, so Rails 4 can use the sprockets object