I have a 3rd party gem with extension for String
class:
class String
def to_url
self.gsub /\s+/, '-'
end
end
And I have my app trying to extend String
class:
class String
def to_url
Russian.translit self
super
end
end
How do I call super (to replace spaces AND do transliteration) from my app? My code does super
, but skips Russian.translit self
.