Parent

Less::Generators::ScaffoldGenerator

Public Instance Methods

copy_stylesheet() click to toggle source
# File lib/rails/generators/less/scaffold/scaffold_generator.rb, line 9
def copy_stylesheet
  file = File.join ::Rails::Generators::ScaffoldGenerator.source_root, 'scaffold.css'
  css = Less::Parser.new.parse(File.read(file)).to_css
  create_file "app/assets/stylesheets/scaffolds.css.less", css
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.