diff options
-rwxr-xr-x | activerecord/Rakefile | 8 | ||||
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 2 |
2 files changed, 8 insertions, 2 deletions
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? # |