Browse files

Support yardoc

This commit renames the .rb template to .erb. With it renamed, yardoc
won't try and parse the file (which was causing the install to break).

Closes #52
  • Loading branch information...
1 parent 6027f8d commit a6ccbcb9f61f67bff7390b020015aea2b1c1ccf8 @joshuaclayton joshuaclayton committed Mar 30, 2012
View
2 lib/generators/factory_girl/model/model_generator.rb
@@ -7,7 +7,7 @@ class ModelGenerator < Base
class_option :dir, :type => :string, :default => "test/factories", :desc => "The directory where the factories should go"
def create_fixture_file
- template 'fixtures.rb', File.join(options[:dir], "#{table_name}.rb")
+ template 'fixtures.erb', File.join(options[:dir], "#{table_name}.rb")
end
end
end
View
0 .../factory_girl/model/templates/fixtures.rb → ...factory_girl/model/templates/fixtures.erb
File renamed without changes.

0 comments on commit a6ccbcb

Please sign in to comment.