On 7 Nov 2008, at 11:15, Scott A S wrote:
>
> Hi,
>
> The following file within rails
> /activeresource/lib/active_resource/formats/xml_format.rb
>
> Has the method
> def extension
> "xml"
> end
>
> How can I overwrite this so that it returns PHP without editing any
> core
> file?
>
just reopen that class
class WhateverItIs
def extension
"php"
end
end
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---