Sha256: d61face7549b51d921ef759676d231256bffa9811951976447193f2825824acb
Contents?: true
Size: 602 Bytes
Versions: 155
Compression:
Stored size: 602 Bytes
Contents
require_relative "named_base_generator" module Generators module Avo class ActionGenerator < NamedBaseGenerator source_root File.expand_path("templates", __dir__) class_option :standalone, type: :boolean namespace "avo:action" def create_resource_file type = "resource" type = "standalone" if options[:standalone] if type == "standalone" template "standalone_action.tt", "app/avo/actions/#{singular_name}.rb" else template "action.tt", "app/avo/actions/#{singular_name}.rb" end end end end end
Version data entries
155 entries across 155 versions & 1 rubygems