Sha256: b44183bbd758ac29272da7228f24be313e037f093e1300354877230d6ea68ca3

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require 'rails/generators'

module Enjoy::Catalog
  class AllGenerator < Rails::Generators::Base
    argument :class_name, type: :string

    desc 'Enjoy::Catalog Controllers generator'
    def all
      generate "enjoy:catalog:config:install"

      generate "enjoy:catalog:models:all #{class_name}"
      
      generate "enjoy:catalog:controllers:all #{class_name}"
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enjoy_cms_catalog-0.3.7 lib/generators/enjoy/catalog/all_generator.rb
enjoy_cms_catalog-0.3.6 lib/generators/enjoy/catalog/all_generator.rb
enjoy_cms_catalog-0.3.5 lib/generators/enjoy/catalog/all_generator.rb
enjoy_cms_catalog-0.3.4 lib/generators/enjoy/catalog/all_generator.rb
enjoy_cms_catalog-0.3.3 lib/generators/enjoy/catalog/all_generator.rb