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
0b5ecf02 » stonean 2008-07-08 changed validates_presence_... 1 == 0.4.5 2008-07-08
5a9f0100 » geoffgarside 2008-07-07 Add notes of my changes to ... 2 * Add: support for optional dependencies through the :required option. Default (true).
3 * Add: Basic test cases of classy-inheritance depends_on functionality.
7d28d3b6 » stonean 2008-06-24 added support for class_nam... 4 == 0.4.4 2008-06-24
5 * Fix: :class_name attribute was not being recognized
6e73d938 » stonean 2008-06-24 :prefix option was not bein... 6 == 0.4.3 2008-06-24
7 * Fix: :prefix option was not being removed before passing option to has_one/belongs_to
df878116 » stonean 2008-06-24 release 0.4.2: fix to polym... 8 == 0.4.2 2008-06-24
9 * Fix: has_one only saves for a create, not update. added in save for update.
d02cf473 » stonean 2008-06-23 removed extra save call for... 10 == 0.4.1 2008-06-23
11 * Fix: removed extra save call for polymorphic associations. rails handles the save on a has_one relationship
e1728687 » stonean 2008-06-23 added support for standard ... 12 == 0.4.0 2008-06-23
13 * Add: support for other options such as :dependent and :class_name
3f723e20 » stonean 2008-06-13 Add: :prefix parameter to d... 14 == 0.3.0 2008-06-12
15 * 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.
7444bedb » stonean 2008-06-09 exposed can_be method 16 == 0.2.1 2008-06-09
17 * 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.
18 * Add: respond_to? :can_be test before adding to requisite class
c0a158d7 » stonean 2008-06-03 When defining a depends_on ... 19 == 0.2.0 2008-06-02
20 * Add: When defining a depends_on that is polymorhic the requisite class has two methods added: "is_a_<model>?" and "as_a_<model>".
1e0b7512 » stonean 2008-05-30 fix to find_with method whe... 21 == 0.1.1 2008-05-30
22 * Fix: Merge when other conditionals are passed to the find_with method was incorrectly called without bang!
b842520a » stonean 2008-05-29 initial code addition 23 == 0.1.0 2008-05-29
24 * Initial release