Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Typo

git-svn-id: svn+ssh://svn0.sea.apvio.net/home/rwl4/inherits_from@3 bd10a536-b517-0410-99c0-c9a68740b5c0
  • Loading branch information...
commit 519ba09326a30f7f5b886c91afed9ab22cb3ccb2 1 parent 10c7d0f
authored July 04, 2006
2  lib/inherits_from.rb
@@ -45,7 +45,7 @@ def self.inherits_from(association_id, options = {})
45 45
     inherited_column_names.each { |name| alias_associated_attr(association_id, name) }
46 46
     
47 47
     before_callback = <<-end_eval
48  
-      init_inherited("#{association_id}")
  48
+      init_inherited_assoc("#{association_id}")
49 49
       instance_variable_get("@#{association_id}").save
50 50
     end_eval
51 51
     
2  test/fixtures/book.rb
... ...
@@ -1,5 +1,5 @@
1 1
 class Book < ActiveRecord::Base
2 2
   inherits_from :product
3 3
   
4  
-  validates_presence_of :name, :price, :pages
  4
+  validates_presence_of :name, :pages
5 5
 end

0 notes on commit 519ba09

Please sign in to comment.
Something went wrong with that request. Please try again.