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

Version Path
voluntary-0.5.2 app/models/organization.rb
voluntary-0.5.1 app/models/organization.rb
voluntary-0.5.0 app/models/organization.rb
voluntary-0.4.0 app/models/organization.rb
voluntary-0.3.0 app/models/organization.rb
voluntary-0.2.4 app/models/organization.rb
voluntary-0.2.3 app/models/organization.rb
voluntary-0.2.2 app/models/organization.rb
voluntary-0.2.1 app/models/organization.rb
voluntary-0.2.0 app/models/organization.rb