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