diff --git a/bin/console b/bin/console index 05f0ecb..dc312b5 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "bundler/setup" -require "acts_as_followable" +require "acts_as_able" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/lib/acts_as_able/version.rb b/lib/acts_as_able/version.rb index 7e5df14..e643e09 100644 --- a/lib/acts_as_able/version.rb +++ b/lib/acts_as_able/version.rb @@ -1,3 +1,3 @@ -module ActsAsFollowable +module ActsAsAble VERSION = "0.1.1" end diff --git a/lib/generators/acts_as_followable_generator.rb b/lib/generators/acts_as_followable_generator.rb index bfb5d7a..ee47c43 100644 --- a/lib/generators/acts_as_followable_generator.rb +++ b/lib/generators/acts_as_followable_generator.rb @@ -1,9 +1,6 @@ -require 'rails/generators' -require 'rails/generators/migration' - -class ActsAsFollowableGenerator < Rails::Generators::Base - include Rails::Generators::Migration +require 'generators/acts_as_able_generator' +class ActsAsFollowableGenerator < ActsAsAbleGenerator def create_migration_file migration_template 'follow_migration.rb', 'db/migrate/acts_as_followable_migration.rb' end diff --git a/lib/generators/acts_as_unlikeable_generator.rb b/lib/generators/acts_as_unlikeable_generator.rb index 4e3090a..b47551a 100644 --- a/lib/generators/acts_as_unlikeable_generator.rb +++ b/lib/generators/acts_as_unlikeable_generator.rb @@ -1,9 +1,6 @@ -require 'rails/generators' -require 'rails/generators/migration' - -class ActsAsUnlikeableGenerator < Rails::Generators::Base - include Rails::Generators::Migration +require 'generators/acts_as_able_generator' +class ActsAsUnlikeableGenerator < ActsAsAbleGenerator def create_migration_file migration_template 'unlike_migration.rb', 'db/migrate/acts_as_unlikable_migration.rb' end