Sha256: e27029883620e56e12965c6e9e72866f3d111fba3e7a1df4c66360f14ee9308c
Contents?: true
Size: 812 Bytes
Versions: 2
Compression:
Stored size: 812 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(@@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 require "tasks/helpers/before_hook.rb" load "tasks/bower.rake" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bower-rails-0.7.3 | lib/bower-rails/railtie.rb |
bower-rails-0.7.2 | lib/bower-rails/railtie.rb |