leon breedt wrote:

Add this to lib/local.rb:

module Hobix
class BaseEntry
   def link_with_strip
     link_without_strip.gsub(/\.html$/, '')
   end

   alias_method :link_without_strip, :link
   alias_method :link, :link_with_strip
end
end

Oh, and as of last night's mrrrrg this can be also be done with:

 class Hobix::Weblog
   def central_ext; nil; end
 end

...yes, in lib/local.rb.

Good stuff, Leon.

_why
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to