Permalink
Browse files

Migration renamed from ActsAsVoteable to VoteFu. Corrected generator …

…script.
  • Loading branch information...
nagybence committed Nov 17, 2008
1 parent 00fa594 commit 0635d5bb3cb1ffd2e881e0c2f02a8b54650853f2
@@ -1,4 +1,4 @@
-class ActsAsVoteableMigration < ActiveRecord::Migration
+class VoteFuMigration < ActiveRecord::Migration
def self.up
create_table :votes, :force => true do |t|
t.boolean :vote, :default => false
@@ -0,0 +1,8 @@
+class VoteFuGenerator < Rails::Generator::Base
+
+ def manifest
+ record do |m|
+ m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => 'vote_fu_migration'
+ end
+ end
+end
@@ -1,11 +0,0 @@
-class VoteableGenerator < Rails::Generator::NamedBase
-
- attr_accessor :model_name
-
- def manifest
- @model_name = class_name.underscore.singularize
- record do |m|
- m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "acts_as_voteable_migration"
- end
- end
-end
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "vote_fu"
- s.version = "0.0.4"
+ s.version = "0.0.5"
s.date = "2008-11-17"
s.summary = "Voting for ActiveRecord with multiple vote sources and advanced features."
s.email = "pete@peteonrails.com"
@@ -11,10 +11,10 @@ Gem::Specification.new do |s|
s.files = [ "CHANGELOG.markdown",
"MIT-LICENSE",
"README.markdown",
- "generators/voteable",
- "generators/voteable/voteable_generator.rb",
- "generators/voteable/templates",
- "generators/voteable/templates/migration.rb",
+ "generators/vote_fu",
+ "generators/vote_fu/vote_fu_generator.rb",
+ "generators/vote_fu/templates",
+ "generators/vote_fu/templates/migration.rb",
"init.rb",
"lib/vote_fu.rb",
"lib/acts_as_voteable.rb",

0 comments on commit 0635d5b

Please sign in to comment.