Skip to content

Instantly share code, notes, and snippets.

@moretea
Created October 10, 2011 01:03
Show Gist options
  • Select an option

  • Save moretea/1274434 to your computer and use it in GitHub Desktop.

Select an option

Save moretea/1274434 to your computer and use it in GitHub Desktop.
module Plugin::SupportTickets::Models
include BusinessR::Base::Models
class Ticket < BaseModel
configure do
has :workflow
has :optimistic_locking
has :versions do |config|
config.included_relations = [:posts]
end
strategy :delete => :soft
many :conversation_items, :references => "Item"
one :requester, :references => "::Base::Models::User"
end
end
class Item < BaseModel
configure do
one :actor, :references => "::Base::Models::User"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment