Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed association picture reference

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit b921b5da156d33a7ced0656074f659854fb9082e 1 parent 2bf2230
@dhh dhh authored
View
8 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
+end
View
2  activerecord/lib/active_record/associations.rb
@@ -43,7 +43,7 @@ def clear_association_cache #:nodoc:
#
# == Example
#
- # link:../../examples/associations.png
+ # link:files/examples/associations.png
#
# == Is it belongs_to or has_one?
#
Please sign in to comment.
Something went wrong with that request. Please try again.