Skip to content

Instantly share code, notes, and snippets.

@semanticart
Created March 25, 2009 13:35
Show Gist options
  • Select an option

  • Save semanticart/85465 to your computer and use it in GitHub Desktop.

Select an option

Save semanticart/85465 to your computer and use it in GitHub Desktop.
class Trade
def users_with_destroyed
User.find_with_destroyed(:all, :conditions => {:id => self.user_id})
end
def user_with_destroyed
User.find_with_destroyed(self.user_id)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment