|
@@ -6,9 +6,12 @@ class Organization < ApplicationModel
|
|
extend Organization::Search
|
|
extend Organization::Search
|
|
include Organization::SearchIndex
|
|
include Organization::SearchIndex
|
|
|
|
|
|
- has_and_belongs_to_many :users
|
|
|
|
- has_many :members, :class_name => 'User'
|
|
|
|
- validates :name, :presence => true
|
|
|
|
|
|
+ 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
|
|
|
|
|
|
activity_stream_support :role => 'Admin'
|
|
activity_stream_support :role => 'Admin'
|
|
history_support
|
|
history_support
|