Class: DateWrapper::Generators::StylesheetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/date_wrapper/stylesheets_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ StylesheetsGenerator

Returns a new instance of StylesheetsGenerator.



15
16
17
18
# File 'lib/generators/date_wrapper/stylesheets_generator.rb', line 15

def initialize(*args, &block)
  super
  generate_stylesheets
end

Class Method Details

.source_rootObject



11
12
13
# File 'lib/generators/date_wrapper/stylesheets_generator.rb', line 11

def self.source_root
  File.expand_path(File.join(File.dirname(__FILE__), '../../../app/assets/stylesheets'))
end