Vendor Everything - Load vendor


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
  2. File.directory?(lib = "#{dir}/lib") ? lib : dir
  3. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.