trabajo-afectivo/app/models/organization.rb

20 lines
592 B
Ruby
Raw Normal View History

2014-02-03 19:23:00 +00:00
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
class Organization < ApplicationModel
2014-08-02 22:06:51 +00:00
require 'organization/assets'
include Organization::Assets
extend Organization::Search
include Organization::SearchIndex
has_and_belongs_to_many :users
has_many :members, :class_name => 'User'
validates :name, :presence => true
after_create :notify_clients_after_create
after_update :notify_clients_after_update
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
search_index_support
2013-05-21 22:30:09 +00:00
2014-08-02 22:06:51 +00:00
end