public
Description: Specifies that associations should be included automatically with find() calls in ActiveRecord
Homepage:
Clone URL: git://github.com/jcoglan/include_by_default.git
jcoglan (author)
Wed Aug 01 07:53:07 -0700 2007
commit  e4996a2ad6195b4d96abd18e28c9d83c49154719
tree    f3ed1a89561e49e3f7041de6ffe6065aadfb073b
parent  00229e8df6d21b517ae439d4b0849b0f8062acfc
include_by_default / Rakefile
100644 23 lines (19 sloc) 0.572 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the include_by_default plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the include_by_default plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'IncludeByDefault'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end