class MyDashboard::Generators::WidgetGenerator
Public Instance Methods
widget()
click to toggle source
# File lib/generators/my_dashboard/widget_generator.rb, line 9 def widget template 'widgets/new.html', MyDashboard.config.widgets_views_path.join("#{file_name}.html") template 'widgets/new.scss', MyDashboard.config.widgets_css_path.join('widgets', "#{file_name}.scss") template 'widgets/new.coffee', MyDashboard.config.widgets_js_path.join('widgets', "#{file_name}.coffee") end