<commit_before># Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/

class Organization < ApplicationModel
  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

  activity_stream_support  :role => 'Admin'
  history_support
  search_index_support

end<commit_msg>Send notify after organisation has changed.<commit_after># Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/

class Organization < ApplicationModel
  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

  activity_stream_support  :role => 'Admin'
  history_support
  search_index_support

end
{'fraction_non_alphanumeric': 0.075, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 3.700404858299595, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5274781', 'n_tokens_mistral': 344, 'n_tokens_neox': 316, 'n_words': 76}