search for: included_in_classes

Displaying 4 results from an estimated 4 matches for "included_in_classes".

2007 Jan 29
2
What does Reloadable mean in rails source code?
...f included(base) #nodoc: raise TypeError, "Only Classes can be Reloadable!" unless base.is_a? Class unless base.respond_to?(:reloadable?) class << base define_method(:reloadable?) { true } end end end def reloadable_classes included_in_classes.select { |klass| klass.reloadable? } end end # Captures the common pattern where a base class should not be reloaded, # but its subclasses should be. module Subclasses def self.included(base) #nodoc: base.send :include, Reloadable (class << base; self; end).send(:...
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
2006 Mar 10
0
WEBrick crashing
...Array#include? 27.35 5.56 0.75 3966 0.19 0.19 Module#== 21.64 6.16 0.60 1 595.00 2000.00 ObjectSpace.each_object 5.71 6.31 0.16 865 0.18 0.18 Module#included_modules 5.13 6.45 0.14 1 141.00 2688.00 Module#included_in_classes 1.13 6.48 0.03 99 0.31 0.31 Kernel.send 0.58 6.50 0.02 5 3.20 3.20 Array#+ 0.58 6.52 0.02 8 2.00 2.00 Array#collect 0.55 6.53 0.02 10 1.50 10.90 Array#each 0.55 6.55 0.01...
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in a kind of hell where I can''t get my app working! Currently running (or trying to run): Ruby version 1.8.4 (i386-mswin32) RubyGems version 0.8.11 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version