Created
January 4, 2011 20:22
-
-
Save wiseleyb/765348 to your computer and use it in GitHub Desktop.
activeresource loosing it's prefix_options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Base < ActiveResource::Base | |
def reload | |
po = self.prefix_options.dup | |
super | |
self.prefix_options = po | |
return self | |
end | |
def save | |
po = self.prefix_options.dup | |
res = super | |
self.prefix_options = po | |
return res | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment