Skip to content

Commit 9f3a217

Browse files
yhirano55ctran
authored andcommitted
Fix README and require annotate in InstallGenerator (#494)
* Fix InstallGenerator to require annotate * Fix README
1 parent d02ff2e commit 9f3a217

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.rdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ Also, if you pass the -r option, it'll annotate routes.rb with the output of
5555

5656
Into Gemfile from rubygems.org:
5757

58-
gem 'annotate'
58+
gem 'annotate', require: false
5959

6060
Into Gemfile from Github:
6161

62-
gem 'annotate', git: 'https://github.com/ctran/annotate_models.git'
62+
gem 'annotate', github: 'ctran/annotate_models', require: false
6363

6464
Into environment gems from rubygems.org:
6565

lib/generators/annotate/install_generator.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
require 'annotate'
2+
13
module Annotate
24
module Generators
35
class InstallGenerator < Rails::Generators::Base
46
desc 'Copy annotate_models rakefiles for automatic annotation'
5-
source_root File.expand_path('../templates', __FILE__)
7+
source_root File.expand_path('templates', __dir__)
68

79
# copy rake tasks
810
def copy_tasks

0 commit comments

Comments
 (0)