Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created October 30, 2008 14:55
Show Gist options
  • Select an option

  • Save methodmissing/21029 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/21029 to your computer and use it in GitHub Desktop.
module ActiveResource
class Base
protected
alias :original_create :create
def create( attributes = {} )
self.attributes = attributes
original_create
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment