Class: TailwindTheme::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/tailwind_theme/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_alternative_themeObject



19
20
21
22
# File 'lib/generators/tailwind_theme/install/install_generator.rb', line 19

def copy_alternative_theme
  @theme_name = "alternative"
  template "theme.yml", "config/themes/alternative.yml#{".erb" if !!options[:erb]}"
end

#copy_default_themeObject



14
15
16
17
# File 'lib/generators/tailwind_theme/install/install_generator.rb', line 14

def copy_default_theme
  @theme_name = "default"
  template "theme.yml", "config/theme.yml#{".erb" if !!options[:erb]}"
end