Sha256: 4fd9c36bdec5d6a2265f79ff5f84771a2f533a978f77eeb9b5f8896c1e80a92f
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
# frozen_string_literal: true require 'rails/generators/base' module LatoCore # ScaffoldGenerator. class ScaffoldGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :model_name, type: :string, default: 'Scaffold' desc 'This function create a complete scaffold with Lato.' def create_crud run_model_generator run_lato_crud_generator end private def run_model_generator generate 'model', model_name end def run_lato_crud_generator generate 'lato_core:crud', model_name end end end
Version data entries
4 entries across 4 versions & 1 rubygems