search for: model_file_name

Displaying 2 results from an estimated 2 matches for "model_file_name".

2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
...MODEL_DIR = File.join(RAILS_ROOT, "app/models") -FIXTURE_DIR = File.join(RAILS_ROOT, "test/fixtures") +SPEC_DIR = File.join(RAILS_ROOT, "spec/models") +FIXTURE_DIR = File.join(RAILS_ROOT, "spec/fixtures") module AnnotateModels @@ -75,6 +76,9 @@ model_file_name = File.join(MODEL_DIR, klass.name.underscore + ".rb") annotate_one_file(model_file_name, info) + spec_file_name = File.join(SPEC_DIR, klass.name.underscore + "_spec.rb") + annotate_one_file(spec_file_name, info) + fixture_file_name = File.join(FIXTURE_DIR, klass...
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels plugin http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance and before I go down the road with it, I was wondering if anyone has used it with file_column. The way file_column deals with an uploaded file -- by storing it to the filesystem in a path that employs the model name and id --