public
Description: Adds a depends_on class method to your ActiveRecord model so that you can define requisite objects. e.g. User.depends_on :profile, :attrs => [:first_name, :last_name, :email]
Homepage: http://stonean.com/wiki/classy-inheritance
Clone URL: git://github.com/stonean/classy-inheritance.git
classy-inheritance / Rakefile
100644 31 lines (24 sloc) 0.715 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Look in the tasks/setup.rb file for the various options that can be
# configured in this Rakefile. The .rake files in the tasks directory
# are where the options are used.
 
begin
  require 'bones'
  Bones.setup
rescue LoadError
  begin
    load 'tasks/setup.rb'
  rescue LoadError
    raise RuntimeError, '### please install the "bones" gem ###'
  end
end
 
ensure_in_path 'lib'
require 'classy-inheritance'
 
task :default => 'spec:run'
 
PROJ.name = 'classy-inheritance'
PROJ.authors = 'Andrew Stone'
PROJ.email = 'andy@stonean.com'
PROJ.url = 'http://stonean.com/wiki/classy-inheritance'
PROJ.version = Stonean::ClassyInheritance::VERSION
PROJ.rubyforge.name = 'classyinherit'
 
PROJ.spec.opts << '--color'
 
# EOF