search for: count_observers

Displaying 2 results from an estimated 2 matches for "count_observers".

2006 May 24
1
Observer behavior differences between DEV and TEST environments ?
...transactions LIMIT 1 :after_initialize == #notify -- BEGIN (1) GreenbackTransactionObserver#update(:after_initialize, #<GreenbackTransaction:0x362f6d8 ...>) after_initialize (observer) :after_initialize == #notify -- END The BEGIN line with the 1 in parens is the result of calling self.class.count_observers. On the other hand, when I run the tests, the log looks like this: GreenbackTransaction Load (0.000000) SELECT * FROM greenback_transactions WHERE (greenback_transactions.id = 1411) LIMIT 1 :after_initialize == #notify -- BEGIN (0) :after_initialize == #notify -- END You can see there are no ob...
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde