Skip to content

Commit

Permalink
added blueprints/* dir
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpunk committed Aug 14, 2009
1 parent fcd69fd commit 978c340
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/annotate/annotate_models.rb
Expand Up @@ -12,7 +12,8 @@ class << self
# Object Daddy http://github.com/flogic/object_daddy/tree/master
EXEMPLARS_SPEC_DIR = File.join("spec", "exemplars")
EXEMPLARS_TEST_DIR = File.join("test", "exemplars")

BLUEPRINTS_DIR = File.join("test", "blueprints")

def model_dir
@model_dir || "app/models"
end
Expand Down Expand Up @@ -154,6 +155,7 @@ def annotate(klass, file, header,options={})
File.join(SPEC_MODEL_DIR, "#{model_name}_spec.rb"), # spec
File.join(EXEMPLARS_TEST_DIR, "#{model_name}_exemplar.rb"), # Object Daddy
File.join(EXEMPLARS_SPEC_DIR, "#{model_name}_exemplar.rb"), # Object Daddy
File.join(BLUEPRINTS_DIR, "#{model_name}_blueprint.rb"), # Machinist blueprint
].each { |file| annotate_one_file(file, info) }

FIXTURE_DIRS.each do |dir|
Expand Down

0 comments on commit 978c340

Please sign in to comment.