Sha256: 48a9ec0140d7b410c51be52ec917752f9a7c5738e01da5dbba9dce56b630c8b2

Contents?: true

Size: 255 Bytes

Versions: 18

Compression:

Stored size: 255 Bytes

Contents

class Profession < ActiveRecord::Base
  include Applicat::Mvc::Model::Resource::Base
  
  has_many :users
  
  validates :name, presence: true, uniqueness: true
  
  attr_accessible :name
  
  extend FriendlyId
  
  friendly_id :name, :use => :slugged
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
voluntary-0.5.2 app/models/profession.rb
voluntary-0.5.1 app/models/profession.rb
voluntary-0.5.0 app/models/profession.rb
voluntary-0.4.0 app/models/profession.rb
voluntary-0.3.0 app/models/profession.rb
voluntary-0.2.4 app/models/profession.rb
voluntary-0.2.3 app/models/profession.rb
voluntary-0.2.2 app/models/profession.rb
voluntary-0.2.1 app/models/profession.rb
voluntary-0.2.0 app/models/profession.rb
voluntary-0.1.0 app/models/profession.rb
voluntary-0.1.0.rc4 app/models/profession.rb
voluntary-0.1.0.rc3 app/models/profession.rb
voluntary-0.1.0.rc2 app/models/profession.rb
voluntary-0.1.0.rc1 app/models/profession.rb
voluntary-0.0.3 app/models/profession.rb
voluntary-0.0.2 app/models/profession.rb
voluntary-0.0.1 app/models/profession.rb