2014-02-03 19:23:00 +00:00
|
|
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2012-09-20 12:08:02 +00:00
|
|
|
class Organization < ApplicationModel
|
2014-08-02 22:06:51 +00:00
|
|
|
require 'organization/assets'
|
2013-08-19 06:29:49 +00:00
|
|
|
include Organization::Assets
|
|
|
|
extend Organization::Search
|
2014-01-29 23:54:34 +00:00
|
|
|
include Organization::SearchIndex
|
2013-08-19 06:29:49 +00:00
|
|
|
|
2013-09-28 00:07:11 +00:00
|
|
|
has_and_belongs_to_many :users
|
2014-01-29 23:54:34 +00:00
|
|
|
has_many :members, :class_name => 'User'
|
|
|
|
validates :name, :presence => true
|
2013-09-29 16:40:42 +00:00
|
|
|
|
2013-09-28 00:07:11 +00:00
|
|
|
activity_stream_support :role => 'Admin'
|
2013-09-29 16:40:42 +00:00
|
|
|
history_support
|
2014-01-27 22:59:41 +00:00
|
|
|
search_index_support
|
2013-05-21 22:30:09 +00:00
|
|
|
|
2014-08-02 22:06:51 +00:00
|
|
|
end
|