Sha256: d46aaf7750642de5246e2eb2028fd4a0216e4be6fa10f7bae417272734b83f24
Contents?: true
Size: 568 Bytes
Versions: 155
Compression:
Stored size: 568 Bytes
Contents
require_relative "../named_base_generator" module Generators module Avo module Card class PartialGenerator < Generators::Avo::NamedBaseGenerator 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 end
Version data entries
155 entries across 155 versions & 1 rubygems