Class: Yeqs::SexybuttonsGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



3
4
5
# File 'lib/generators/yeqs/sexybuttons_generator.rb', line 3

def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), '/../../../public'))
end

Instance Method Details

#installObject



7
8
9
# File 'lib/generators/yeqs/sexybuttons_generator.rb', line 7

def install
  directory 'components', 'public/components'
end