Skip to content

Commit

Permalink
Support yardoc
Browse files Browse the repository at this point in the history
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
joshuaclayton committed Mar 30, 2012
1 parent 6027f8d commit a6ccbcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/factory_girl/model/model_generator.rb
Expand Up @@ -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
Expand Down

0 comments on commit a6ccbcb

Please sign in to comment.