Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 519ba09326a30f7f5b886c91afed9ab22cb3ccb2 1 parent 10c7d0f
rwl4 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/inherits_from.rb
  2. +1 −1  test/fixtures/book.rb
View
2  lib/inherits_from.rb
@@ -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
2  test/fixtures/book.rb
@@ -1,5 +1,5 @@
class Book < ActiveRecord::Base
inherits_from :product
- validates_presence_of :name, :price, :pages
+ validates_presence_of :name, :pages
end
Please sign in to comment.
Something went wrong with that request. Please try again.