File: company.rb

package info (click to toggle)
ruby-protected-attributes 1.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 424 kB
  • ctags: 629
  • sloc: ruby: 2,269; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class AbstractCompany < ActiveRecord::Base
  self.abstract_class = true
end

class Company < AbstractCompany
  attr_protected :rating
end

class Firm < Company
end

class Corporation < Company
  attr_accessible :type, :name, :description
end

class SpecialCorporation < Corporation
end