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