Sha256: 554fc3acd1e227cf4bdf6e7d0062a2ea48f93946ce383bc3b5e32cbefc8820b9
Contents?: true
Size: 774 Bytes
Versions: 6
Compression:
Stored size: 774 Bytes
Contents
module Ixtlan class UserManagementModelsGenerator < Rails::Generators::NamedBase #metagenerator arguments.clear # clear name argument from NamedBase argument :params, :type => :array, :default => ['user'], :required => false, :banner => "user_model [field:type ..] [group_model [field:type ..] [flavor_model1 [field:type ..] flavor_model2 [field:type ..]]]", :desc => "group default: group with field name:string" class_option :gwt, :banner => "PACKAGE_NAME", :type => :string, :desc => "given gwt package name will generate gwt code" def name # set alias so NamedBase uses the model as its name @params[0].sub(/\s+.*/, '').singularize end attr_reader :params hook_for :orm, :required => true end end
Version data entries
6 entries across 6 versions & 1 rubygems