Sha256: 08f1ccea4c7c76aa53e7346663d4c8eb55ae7b1841c4477ab6c80430f523d819
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
require 'rails/generators' require 'rails/generators/migration' module Nivo module Generators class StylesheetGenerator < Rails::Generators::Base source_root File.expand_path("../../../../../public/stylesheets", __FILE__) desc "Copies Nivo stylesheets to your application." argument :scope, :required => false, :default => nil, :desc => "The scope to copy stylesheets to" def copy_stylesheets copy_file "default.css", "public/stylesheets/default.css" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nivo-0.0.4 | lib/rails/generators/nivo/stylesheet_generator.rb |
nivo-0.0.3 | lib/rails/generators/nivo/stylesheet_generator.rb |
nivo-0.0.2 | lib/rails/generators/nivo/stylesheet_generator.rb |