Class: Joosy::Generators::LayoutGenerator
- Inherits:
-
Rails::Generators::JoosyBase
- Object
- Rails::Generators::NamedBase
- Rails::Generators::JoosyBase
- Joosy::Generators::LayoutGenerator
- Defined in:
- lib/rails/generators/joosy/layout_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_files ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rails/generators/joosy/layout_generator.rb', line 8 def create_files super template "app/layouts/template.js.coffee", "#{app_path}/layouts/#{file_name}.js.coffee" create_file("#{app_path}/templates/layouts/#{file_name}.jst.#{[:template_kind]}") end |