Sha256: a6ba2fc70fd673a20f5c15f58776314a1ebf1f6d69f7986f02037a0f7701efb1

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

class Area < ActiveRecord::Base
  include Applicat::Mvc::Model::Resource::Base
  include Applicat::Mvc::Model::Tree
  include Applicat::Mvc::Model::Tokenable
  
  has_and_belongs_to_many :users
  has_and_belongs_to_many :projects
  
  validates :name, presence: true, uniqueness: true
  
  attr_accessible :name, :parent_id
  
  extend FriendlyId
  
  friendly_id :name, :use => :slugged
  
  def products
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary-0.1.0.rc2 app/models/area.rb