Commit 9f3a2174 by yhirano55 Committed by Cuong Tran

Fix README and require annotate in InstallGenerator (#494)

* Fix InstallGenerator to require annotate * Fix README
parent d02ff2e1
...@@ -55,11 +55,11 @@ Also, if you pass the -r option, it'll annotate routes.rb with the output of ...@@ -55,11 +55,11 @@ Also, if you pass the -r option, it'll annotate routes.rb with the output of
Into Gemfile from rubygems.org: Into Gemfile from rubygems.org:
gem 'annotate' gem 'annotate', require: false
Into Gemfile from Github: Into Gemfile from Github:
gem 'annotate', git: 'https://github.com/ctran/annotate_models.git' gem 'annotate', github: 'ctran/annotate_models', require: false
Into environment gems from rubygems.org: Into environment gems from rubygems.org:
......
require 'annotate'
module Annotate module Annotate
module Generators module Generators
class InstallGenerator < Rails::Generators::Base class InstallGenerator < Rails::Generators::Base
desc 'Copy annotate_models rakefiles for automatic annotation' desc 'Copy annotate_models rakefiles for automatic annotation'
source_root File.expand_path('../templates', __FILE__) source_root File.expand_path('templates', __dir__)
# copy rake tasks # copy rake tasks
def copy_tasks def copy_tasks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment