Sha256: 6a8f2b70cfdf6efc347b6e4943fae4c60f18223e5d7daada2fc19f11885295b4
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require 'generators/slim/scaffold/scaffold_generator' class PgSlimGenerator < Slim::Generators::ScaffoldGenerator source_root File.expand_path('templates', __dir__) class_option :paranoia, type: :boolean, default: false, desc: 'Paranoid y deleted_at.' class_option :discard, type: :boolean, default: false, desc: 'Discard y discarded_at.' class_option :trackeo_de_usuarios, type: :boolean, default: true, desc: 'Genera campos creado_por y actualizado_por.' def copiar_download template 'download.xlsx.axlsx', File.join('app', 'views', controller_file_path, 'download.xlsx.axlsx') end protected def available_views %w[index edit show new _form] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pg_scaffold-0.1.0 | lib/generators/pg_slim/pg_slim_generator.rb |