Skip to content
Browse files

fixed small bug with STI and is-list

  • Loading branch information...
1 parent 878cdd1 commit 5feb4fe3b885a3caf5befb97cf1a0509e694ea91 @somebee somebee committed Sep 26, 2008
Showing with 1 addition and 2 deletions.
  1. +1 −2 dm-is-list/lib/dm-is-list/is/list.rb
View
3 dm-is-list/lib/dm-is-list/is/list.rb
@@ -59,13 +59,12 @@ def is_list(options={})
# we need to make sure that STI-models will inherit the list_scope.
after_class_method :inherited do |retval, target|
target.instance_variable_set(:@list_options, @list_options.dup)
- target.instance_variable_set(:@list_scope, @list_scope.dup)
end
end
module ClassMethods
- attr_reader :list_options, :list_scope
+ attr_reader :list_options
##
# use this function to repair / build your lists.

0 comments on commit 5feb4fe

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