class MyDashboard::Generators::InstallGenerator
Public Instance Methods
copy_dashboard()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 21 def copy_dashboard template 'dashboards/sample.html.erb', 'app/views/my_dashboard/dashboards/sample.html.erb' end
copy_initializer()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 13 def copy_initializer template 'initializer.rb', 'config/initializers/my_dashboard.rb' end
copy_job()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 30 def copy_job template 'jobs/sample.rb', 'app/jobs/sample.rb' end
copy_layout()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 17 def copy_layout template 'layouts/dashboard.html.erb', 'app/views/layouts/my_dashboard/dashboard.html.erb' end
copy_widget_manifests()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 25 def copy_widget_manifests template 'widgets/index.css', 'app/assets/stylesheets/my_dashboard/widgets/index.css' template 'widgets/index.js', 'app/assets/javascripts/my_dashboard/widgets/index.js' end
install()
click to toggle source
# File lib/generators/my_dashboard/install_generator.rb, line 9 def install route 'mount MyDashboard::Engine, at: MyDashboard.config.engine_path' end