Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Created April 13, 2011 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noeticpenguin/918175 to your computer and use it in GitHub Desktop.
Save noeticpenguin/918175 to your computer and use it in GitHub Desktop.
class CaseComment
include DataMapper::Salesforce::Resource
def self.reload
instance_methods.each { |x| undef_method(x) }
Kernel::load(__FILE__)
end
def self.default_repository_name
:salesforce
end
property :id, Serial
# property :parent, String
property :comment_body, String
property :is_deleted, Boolean
property :is_published, Boolean
belongs_to :case, :parent_key => [:id]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment