search for: aliasapp

Displaying 1 result from an estimated 1 matches for "aliasapp".

2008 Nov 23
4
Strange behavior of alias_method_chains
Greetings. I''ve got very strange behavior of alias_method_chains, and I hope someone will advise me. I have a rails 2.2.2 app created with #rails aliasApp , a class XYZ residing in app/helpers/xyz.rb: <code> class XYZ attr_accessor :name attr_accessor :value def initialize (a, b) puts "in XYZ constructor" self.name = a self.value = b end def a puts self.name end def b puts self.value end end...