Skip to content

Instantly share code, notes, and snippets.

@wiseleyb
Created January 4, 2011 20:22
Show Gist options
  • Save wiseleyb/765348 to your computer and use it in GitHub Desktop.
Save wiseleyb/765348 to your computer and use it in GitHub Desktop.
activeresource loosing it's prefix_options
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