Ruby on Rails Saturday, December 17, 2016

Hey guys,

When testing a gem that adds a folder to `config.assets.paths`, I get an error that `assets` is not defined. It works on any version less than 5.0 but I couldn't find any code that changed since then that would affect:

      initializer "my_gem.add_assets_path", after: :engines_blank_point, group: :all do |app|          app.config.assets.paths << app.config.my_gem.output_path        end

I also don't know why `engines_blank_point` was originally chosen, but I tried changing it to a few different things and still had no luck. I have `require rails` and `require rails/railtie` at the top, so maybe something was moved out of them that is causing my problem, but I couldn't find more information looking at the code. I also asked this question on StackOverflow, but I think it's too specific to receive much attention there.

http://stackoverflow.com/questions/41151649/what-initializer-should-i-follow-to-be-able-to-add-to-the-config-assets-paths

Thanks,
Tom

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/050925cc-66cb-491f-a23a-89e41b4ad620%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment