From b921b5da156d33a7ced0656074f659854fb9082e Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 30 Apr 2005 15:55:25 +0000 Subject: Fixed association picture reference git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/Rakefile | 8 +++++++- activerecord/lib/active_record/associations.rb | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/Rakefile b/activerecord/Rakefile index ed1636ca99..2918cc4df6 100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -60,6 +60,12 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.include('dev-utils/*.rb') } +# Enhance rdoc task to copy referenced images also +task :rdoc do + FileUtils.mkdir_p "doc/files/examples/" + FileUtils.copy "examples/associations.png", "doc/files/examples/associations.png" +end + # Create compressed packages @@ -252,4 +258,4 @@ task :release => [:package] do first_file = false end end -end \ No newline at end of file +end diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index e447da3051..4b1de85a90 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -43,7 +43,7 @@ module ActiveRecord # # == Example # - # link:../../examples/associations.png + # link:files/examples/associations.png # # == Is it belongs_to or has_one? # -- cgit v1.2.3