fix: extend relation
This commit is contained in:
parent
e633745824
commit
77d040539f
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
require "bundler/setup"
|
require "bundler/setup"
|
||||||
require "acts_as_followable"
|
require "acts_as_able"
|
||||||
|
|
||||||
# You can add fixtures and/or initialization code here to make experimenting
|
# 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.
|
# with your gem easier. You can also use a different console, if you like.
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
module ActsAsFollowable
|
module ActsAsAble
|
||||||
VERSION = "0.1.1"
|
VERSION = "0.1.1"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
require 'rails/generators'
|
require 'generators/acts_as_able_generator'
|
||||||
require 'rails/generators/migration'
|
|
||||||
|
|
||||||
class ActsAsFollowableGenerator < Rails::Generators::Base
|
|
||||||
include Rails::Generators::Migration
|
|
||||||
|
|
||||||
|
class ActsAsFollowableGenerator < ActsAsAbleGenerator
|
||||||
def create_migration_file
|
def create_migration_file
|
||||||
migration_template 'follow_migration.rb', 'db/migrate/acts_as_followable_migration.rb'
|
migration_template 'follow_migration.rb', 'db/migrate/acts_as_followable_migration.rb'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
require 'rails/generators'
|
require 'generators/acts_as_able_generator'
|
||||||
require 'rails/generators/migration'
|
|
||||||
|
|
||||||
class ActsAsUnlikeableGenerator < Rails::Generators::Base
|
|
||||||
include Rails::Generators::Migration
|
|
||||||
|
|
||||||
|
class ActsAsUnlikeableGenerator < ActsAsAbleGenerator
|
||||||
def create_migration_file
|
def create_migration_file
|
||||||
migration_template 'unlike_migration.rb', 'db/migrate/acts_as_unlikable_migration.rb'
|
migration_template 'unlike_migration.rb', 'db/migrate/acts_as_unlikable_migration.rb'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue