Sha256: 0e7c53b6ac4ddabbd97c73e268d54526046822fa0d52878926d9ba7ff1e32155

Contents?: true

Size: 409 Bytes

Versions: 8

Compression:

Stored size: 409 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 :name, presence: true, uniqueness: true
  
  attr_accessible :name
  
  extend FriendlyId
  
  friendly_id :name, :use => :slugged
  
  PARENT_TYPES = ['user']
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/models/organization.rb
voluntary-0.1.0.rc4 app/models/organization.rb
voluntary-0.1.0.rc3 app/models/organization.rb
voluntary-0.1.0.rc2 app/models/organization.rb
voluntary-0.1.0.rc1 app/models/organization.rb
voluntary-0.0.3 app/models/organization.rb
voluntary-0.0.2 app/models/organization.rb
voluntary-0.0.1 app/models/organization.rb