Sha256: 3771a511c4ede43a589cb2e66a2819034f5d552cf47decce70c48c55140d3dd5
Contents?: true
Size: 506 Bytes
Versions: 43
Compression:
Stored size: 506 Bytes
Contents
require "rails/generators" module Generators module Avo class PartialCardGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) namespace "avo:card:partial" desc "Add a partial card for your Avo dashboard." def handle template "cards/partial_card_sample.tt", "app/avo/cards/#{name.underscore}.rb" template "cards/partial_card_partial.tt", "app/views/avo/cards/_#{name.underscore}.html.erb" end end end end
Version data entries
43 entries across 43 versions & 1 rubygems