Sha256: 886b79a71810ce4953754621a4300993a3452c1d10c4de01134977b26e5b6c0b
Contents?: true
Size: 609 Bytes
Versions: 186
Compression:
Stored size: 609 Bytes
Contents
require "rails/generators/named_base" module Css module Generators class ScaffoldGenerator < Rails::Generators::NamedBase # In order to allow the Sass generators to pick up the default Rails CSS and # transform it, we leave it in a standard location for the CSS stylesheet # generators to handle. For the simple, default case, just copy it over. def copy_stylesheet dir = Rails::Generators::ScaffoldGenerator.source_root file = File.join(dir, "scaffold.css") create_file "app/assets/stylesheets/scaffold.css", File.read(file) end end end end
Version data entries
186 entries across 147 versions & 19 rubygems