Permalink
Browse files

Typo

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

0 comments on commit 519ba09

Please sign in to comment.