search for: observed_class

Displaying 5 results from an estimated 5 matches for "observed_class".

Did you mean: observed_classes
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) }...
2010 Nov 05
0
RoR:OSV: Installation issue
...activesupport-2.3.8/lib/active_support/ inflector.rb:363:in `constantize'' from /var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/ core_ext/string/inflections.rb:162:in `constantize'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:157:in `observed_class'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:183:in `observed_classes'' from /var/lib/gems/1.8/gems/activerecord-2.3.8/lib/active_record/ observer.rb:166:in `initialize'' from /usr/lib/ruby/1.8/singleton.rb:94:in `new'' from /us...
2012 Feb 11
1
rake command shows the error
...upport-2.3.8/lib/active_support/inflector.rb:363:in `constantize'' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:157:in `observed_class'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:183:in `observed_classes'' from /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/observer.rb:166:in `initialize'' from /usr/lib/ruby/1.8/singleton.rb:94:in `new''...
2009 Mar 15
3
Capistrano deploy errors
...ort-2.2.2/lib/ active_support/inflector.rb:351:in `constantize'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/ active_support/core_ext/string/inflections.rb:162:in `constantize'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:157:in `observed_class'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:183:in `observed_classes'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/ observer.rb:166:in `initialize'' /usr/local/lib/ruby/1.8/singleton.rb:94:in `new''...
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...than "type" for storing the type for inheritance hierarchies. [Dave Steinberg] * Added [] and []= as an alternative way to access attributes when the regular methods have been overwritten [Dave Steinberg] * Added the option to observer more than one class at the time by specifying observed_class as an array * Added auto-id propagation support for tables with arbitrary primary keys that have autogenerated sequences associated with them on PostgreSQL. [Dave Steinberg] * Changed that integer and floats set to "" through attributes= remain as NULL. This was especially a probl...