Sha256: 84b5bde9b417fef46ad5c1c81f68ddb06ead9398f5b0f37902ce6b5cb8ee95aa
Contents?: true
Size: 447 Bytes
Versions: 10
Compression:
Stored size: 447 Bytes
Contents
class Organization < ActiveRecord::Base include Applicat::Mvc::Model::Resource::Base #include Applicat::Mvc::Model::Tree include Applicat::Mvc::Model::Tokenable belongs_to :user has_many :projects validates :user_id, presence: true validates :name, presence: true, uniqueness: true attr_accessible :name extend FriendlyId friendly_id :name, :use => :slugged PARENT_TYPES = ['user'] end
Version data entries
10 entries across 10 versions & 1 rubygems