Sha256: 56f2dfb2578cafc1b4d4e6b2ae3a39bd51522231e4bc93048273403d054148e1
Contents?: true
Size: 488 Bytes
Versions: 23
Compression:
Stored size: 488 Bytes
Contents
require "rails/generators" module Generators module Avo class FieldGenerator < ::Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) namespace "avo:field" desc "Add a custom Avo field to your project." def handle directory "field/components", "app/components/avo/fields/#{singular_name}_field" template "field/%singular_name%_field.rb.tt", "app/avo/fields/#{singular_name}_field.rb" end end end end
Version data entries
23 entries across 23 versions & 1 rubygems