Commit 0c8d1102 by houdelin

add organization able

parent 912dc651
class Organization < ActiveRecord::Base
self.table_name = AppSettings.table_name('organizations')
module CrmUc
module Organizationable
extend ActiveSupport::Concern
include CrmUc::OrganizationRoleable
include CrmUc::OrganizationUserable
include CrmUc::UserCenterable
included do
include CrmUc::OrganizationRoleable
include CrmUc::OrganizationUserable
include CrmUc::UserCenterable
end
end
end
class Department < ActiveRecord::Base
self.table_name = AppSettings.table_name('departments')
include CrmUc::UserCenterable
end
class RolesUser < ActiveRecord::Base
self.table_name = AppSettings.table_name('roles_users')
end
class UsersAssistDepartment < ActiveRecord::Base
self.table_name = AppSettings.table_name('users_assist_departments')
include CrmUc::UserCenterable
end
class UsersDepartment < ActiveRecord::Base
self.table_name = AppSettings.table_name('users_departments')
include CrmUc::UserCenterable
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment