Class: Atrium::ThemeGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/atrium/theme/theme_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_themeObject



4
5
6
7
8
9
10
# File 'lib/generators/atrium/theme/theme_generator.rb', line 4

def create_theme
  # TODO: warning magic string "atrium_themes" to refactor
  copy_file(
    'theme.html.erb',
    File.join('app/views/layouts/atrium/themes/', "#{file_name}.html.erb")
  )
end