search for: class_inheritable_reader

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

2006 Jan 13
1
association callbacks
...} ... end module ClassMethods def append_habtm_callbacks reflect_on_all_associations.each{ |association| if association.macro == :has_and_belongs_to_many #add_callback add_callback = "before_add_for_#{association.name}" class_inheritable_reader(add_callback.to_sym) write_inheritable_array(add_callback.to_sym, [:log_add]) #remove_callback remove_callback = "before_remove_for_#{association.name}" class_inheritable_reader(remove_callback.to_sym) write_inheritable_array(rem...
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