Skip to content

Instantly share code, notes, and snippets.

@jagira
Created October 11, 2010 17:12
Show Gist options
  • Save jagira/620877 to your computer and use it in GitHub Desktop.
Save jagira/620877 to your computer and use it in GitHub Desktop.
def dup
obj = super
obj.instance_variable_set('@attributes', @attributes.dup)
obj
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment