Displaying 1 result from an estimated 1 matches for "observed_subclass".
Did you mean:
observed_subclasses
2009 Nov 26
4
Is this a bug?
Hello all, while I''m using acts_as_audited(on jruby platform),
after vendored the acts_as_audited, it reports some error,
line 167,
# Start observing the declared classes and their subclasses.
def initialize
Set.new(observed_classes + observed_subclasses).each { |klass|
add_observer! klass } #this line
end
after some trace shows this one, when observed_classes is empty, will
return 0(Fixnum) causes the
above line to report error,
def observed_subclasses
observed_classes.sum([]) { |klass| klass.send(:subclasses) }
end
so I changed it t...