class Dashing::Generators::InstallGenerator

Public Instance Methods

copy_dashboard() click to toggle source
# File lib/generators/dashing/install_generator.rb, line 21
def copy_dashboard
  template 'dashboards/sample.html.erb', 'app/views/dashing/dashboards/sample.html.erb'
end
copy_initializer() click to toggle source
# File lib/generators/dashing/install_generator.rb, line 13
def copy_initializer
  template 'initializer.rb', 'config/initializers/dashing.rb'
end
copy_job() click to toggle source
# File lib/generators/dashing/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/dashing/install_generator.rb, line 17
def copy_layout
  template 'layouts/dashboard.html.erb', 'app/views/layouts/dashing/dashboard.html.erb'
end
copy_widget_manifests() click to toggle source
# File lib/generators/dashing/install_generator.rb, line 25
def copy_widget_manifests
  template 'widgets/index.css', 'app/assets/stylesheets/dashing/widgets/index.css'
  template 'widgets/index.js', 'app/assets/javascripts/dashing/widgets/index.js'
end
install() click to toggle source
# File lib/generators/dashing/install_generator.rb, line 9
def install
  route 'mount Dashing::Engine, at: Dashing.config.engine_path'
end