Sha256: b0ce3f9e4d7bc5740ad8cdfd87daa8dbec6fd409b29a95977a9fbab1273df424
Contents?: true
Size: 541 Bytes
Versions: 8
Compression:
Stored size: 541 Bytes
Contents
class Company < AbstractAdapter has_many :roles, as: :ownable has_many :admins, through: :roles, source: :user accepts_nested_attributes_for :roles, allow_destroy: true has_many :beacons, class_name: 'LocationBeacon', dependent: :destroy has_many :locatables has_many :locations, through: :locatables, source: :locatable, source_type: 'Company' has_many :projects, foreign_key: :owner_id, dependent: :destroy, inverse_of: :owner validates_length_of :name, maximum: 256 validates_length_of :short_name, maximum: 10 end
Version data entries
8 entries across 8 versions & 1 rubygems