Class: Cssbt::FoundationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/cssbt/foundation/foundation_generator.rb

Instance Method Summary collapse

Instance Method Details

#copyObject



12
13
14
15
# File 'lib/generators/cssbt/foundation/foundation_generator.rb', line 12

def copy
  copy_file "foundation.css", "app/assets/stylesheets/foundation.css"
  copy_file "foundation.min.js", "app/assets/javascripts/foundation.js"
end

#insertObject



7
8
9
10
# File 'lib/generators/cssbt/foundation/foundation_generator.rb', line 7

def insert
  insert_into_file "app/assets/stylesheets/application.css", "*= require foundation\n", :after => "*= require_self\n"
  insert_into_file "app/assets/javascripts/application.js", "//= require foundation\n", :after => "//= require jquery\n"
end