Ruby on Rails Monday, April 30, 2012

Hello everyone,

I'm upgrading one application from Rails 3.1.3 to 3.2.3 and run into a
nasty problem that none of the assets are found (everything worked
great before upgrade). I've investigated for several hours and it
seems that the root of the problem is that the order of initializers
becomes wrong after initializers.tsort (in railties-3.2.3/lib/rails/
initializable.rb:54). It seems that finisher_hook initializer (which
runs after_initialize, which then bootstraps sprockets by copying
paths from config.assets.paths to Rails.application.assets.paths) is
run before append_assets_path (which loads asset paths from all
engines) and so Sprockets is bootstrapped with empty list of asset
paths. Maybe anyone has any ideas where could the problem be and how
to solve it?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment