Created
October 10, 2011 01:03
-
-
Save moretea/1274434 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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