Skip to content
This repository has been archived by the owner on Nov 16, 2017. It is now read-only.

Commit

Permalink
Cleaned up the install generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Reeves authored and Mike Reeves committed Oct 20, 2010
1 parent 70700ec commit 6c5c5ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rails/generators/community/install_generator.rb
Expand Up @@ -9,7 +9,6 @@ class Community::InstallGenerator < Rails::Generators::Base
argument :name, :type => :string, :required => true, :desc => "Your user model name."

attr_reader :singular_camel_case_name, :plural_camel_case_name, :singular_lower_case_name, :plural_lower_case_name
attr_reader :singular_camel_case_parent, :plural_camel_case_parent, :singular_lower_case_parent, :plural_lower_case_parent

def self.source_root
@source_root ||= File.join(File.dirname(__FILE__), 'templates')
Expand All @@ -26,6 +25,8 @@ def self.next_migration_number(dirname)
end

# Get the names for the User model
# Generate the models

def go
@singular_camel_case_name = name.singularize.camelize
@plural_camel_case_name = name.pluralize.camelize
Expand Down

0 comments on commit 6c5c5ce

Please sign in to comment.