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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to