Sha256: 991a6f3d062acde4aa509de4bbece8825cda99fca42f806bf68b7a1d9d5d4d55
Contents?: true
Size: 395 Bytes
Versions: 43
Compression:
Stored size: 395 Bytes
Contents
require "rails/generators" module Generators module Avo class DashboardGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) namespace "avo:dashboard" desc "Add an Avo dashboard to your project." def handle template "dashboards/dashboard.tt", "app/avo/dashboards/#{name.underscore}.rb" end end end end
Version data entries
43 entries across 43 versions & 1 rubygems