Sha256: 7d98d6f1c2311ab934292b02b846345f50c7c40403b61e6988eaccf3a883f1af
Contents?: true
Size: 788 Bytes
Versions: 4
Compression:
Stored size: 788 Bytes
Contents
require 'bower-rails' require 'bower-rails/dsl' require 'rails' module BowerRails class Railtie < Rails::Railtie railtie_name :bower @@bowerfile = File.join("Bowerfile") if File.exist?(@@bowerfile) config.before_initialize do |app| @dsl = BowerRails::Dsl.evalute(BowerRails.root_path, @@bowerfile) @dsl.final_assets_path.map do |assets_root, assets_path| app.config.assets.paths << Rails.root.join(assets_root, assets_path, "bower_components") end end else config.before_initialize do |app| ["lib", "vendor"].each do |dir| app.config.assets.paths << Rails.root.join(dir, 'assets', 'bower_components') end end end rake_tasks do load "tasks/bower.rake" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bower-rails-0.10.0 | lib/bower-rails/railtie.rb |
bower-rails-0.9.2 | lib/bower-rails/railtie.rb |
bower-rails-0.9.1 | lib/bower-rails/railtie.rb |
bower-rails-0.9.0 | lib/bower-rails/railtie.rb |