class ActsAsCommentableGenerator
Public Instance Methods
create_migration_file()
click to toggle source
# File lib/generators/acts_as_commentable_generator.rb, line 4 def create_migration_file migration_template 'comment_migration.rb', 'db/migrate/acts_as_commentable_migration.rb' end
create_model()
click to toggle source
# File lib/generators/acts_as_commentable_generator.rb, line 8 def create_model template "comment.rb", File.join('app/models', "comment.rb") end