Sha256: db7236a0d89d2fc43cce5644589c6e928f8c2c8ee9de1dca4c825d50f6d6c9c2

Contents?: true

Size: 787 Bytes

Versions: 6

Compression:

Stored size: 787 Bytes

Contents

require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'
require 'generators/ixtlan/scaffold/scaffold_generator'

module Ixtlan
  class UserManagementControllerGenerator < ScaffoldGenerator

    source_root File.expand_path('../../templates', __FILE__)

    class_option :orm, :banner => "NAME", :type => :string, :required => true,
                         :desc => "ORM to generate the controller for"
    class_option :gwt, :banner => "PACKAGE_NAME", :type => :string,
                         :desc => "given gwt package name will generate gwt code"

      
    def create_controller_files
        template 'controller.rb', File.join('app/controllers', class_path, "#{controller_file_name}_controller.rb")
    end

    hook_for :template_engine

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ixtlan-guard-0.7.0 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb
ixtlan-guard-0.6.1 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb
ixtlan-guard-0.6.0 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb
ixtlan-guard-0.5.0 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb
ixtlan-guard-0.4.1 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb
ixtlan-guard-0.4.0 lib/generators/ixtlan/user_management_controller/user_management_controller_generator.rb