Skip to content

Commit

Permalink
Solves #692
Browse files Browse the repository at this point in the history
  • Loading branch information
jnettome committed Feb 5, 2014
1 parent a716a4d commit 302272a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/bootstrap/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class InstallGenerator < ::Rails::Generators::Base
source_root File.expand_path("../templates", __FILE__)
desc "This generator installs Bootstrap to Asset Pipeline"
argument :stylesheets_type, :type => :string, :default => 'less', :banner => '*less or static'
class_option :'no-coffeescript', :type => :boolean, :default => false, :desc => 'Skips coffeescript replacement into app generators'

def add_assets

Expand Down Expand Up @@ -76,6 +77,7 @@ def use_less?
end

def use_coffeescript?
return false if options[:'no-coffeescript']
::Rails.configuration.app_generators.rails[:javascript_engine] == :coffee
end
end
Expand Down

0 comments on commit 302272a

Please sign in to comment.