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 / History.txt
100644 25 lines (24 sloc) 1.535 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
== 0.4.5 2008-07-08
  * Add: support for optional dependencies through the :required option. Default (true).
  * Add: Basic test cases of classy-inheritance depends_on functionality.
== 0.4.4 2008-06-24
  * Fix: :class_name attribute was not being recognized
== 0.4.3 2008-06-24
  * Fix: :prefix option was not being removed before passing option to has_one/belongs_to
== 0.4.2 2008-06-24
  * Fix: has_one only saves for a create, not update. added in save for update.
== 0.4.1 2008-06-23
  * Fix: removed extra save call for polymorphic associations. rails handles the save on a has_one relationship
== 0.4.0 2008-06-23
  * Add: support for other options such as :dependent and :class_name
== 0.3.0 2008-06-12
  * Add: :prefix parameter to depends_on call. So if you have User.depends_on(:profile, :attrs => [:first_name], :prefix => true), your user model will have @user.profile_first_name. This is to avoid name collisions with requisite classes.
== 0.2.1 2008-06-09
  * Add: exposed :can_be method. Can now define what the polymorphic class can be with these methods. This will add the "is_a_<model>?" and "as_a_<model>" methods.
  * Add: respond_to? :can_be test before adding to requisite class
== 0.2.0 2008-06-02
  * Add: When defining a depends_on that is polymorhic the requisite class has two methods added: "is_a_<model>?" and "as_a_<model>".
== 0.1.1 2008-05-30
  * Fix: Merge when other conditionals are passed to the find_with method was incorrectly called without bang!
== 0.1.0 2008-05-29
  * Initial release