Hi,
I’m trying to call a super method, but for some reason it requires
hash instead of a string.
All information: http://pastie.org/612549
Martin S
Hi,
I’m trying to call a super method, but for some reason it requires
hash instead of a string.
All information: http://pastie.org/612549
Martin S
Le jeudi 10 septembre 2009 à 20:29 +0300, Martin Sarapik a écrit :
Hi,
I’m trying to call a super method, but for some reason it requires
hash instead of a string.
All information: http://pastie.org/612549
This is because you used type_register
super({:title=>‘New Person’}) should work
Sorry but it’s very late now so I won’t explain more before going to
bed
Le vendredi 11 septembre 2009 à 00:49 +0200, Pascal T. a écrit :
Sorry but it’s very late now so I won’t explain more before going to
bed
OK I actually found a place to get the explanation from
http://practicalruby.blogspot.com/2007/03/super-accesses-inaccessible.html
and register_type creates a module and includes it
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs