Permalink
Browse files

Fixed bug, thanks to egerlach@feds.uwaterloo.ca

git-svn-id: svn+ssh://svn0.sea.apvio.net/home/rwl4/inherits_from@6 bd10a536-b517-0410-99c0-c9a68740b5c0
  • Loading branch information...
1 parent d1708e1 commit 0af1e39feaec8990ab0758c73e8687c4981e442c rwl4 committed Jul 10, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/inherits_from.rb
@@ -84,7 +84,7 @@ def self.inherits_from(association_id, options = {})
def self.is_a_superclass
define_method('subobject') do
- subtype.constantize.send("find_by_#{self.class.name.downcase}_id", send("id"))
+ subtype.constantize.send("find_by_#{self.class.name.underscore}_id", send("id"))
end
end

0 comments on commit 0af1e39

Please sign in to comment.