Class: MyDashboard::Generators::WidgetGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- MyDashboard::Generators::WidgetGenerator
- Defined in:
- lib/generators/my_dashboard/widget_generator.rb
Instance Method Summary collapse
Instance Method Details
#widget ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/my_dashboard/widget_generator.rb', line 9 def template 'widgets/new.html', MyDashboard.config..join("#{file_name}.html") template 'widgets/new.scss', MyDashboard.config..join('widgets', "#{file_name}.scss") template 'widgets/new.coffee', MyDashboard.config..join('widgets', "#{file_name}.coffee") end |