portrait Security and Organization records
[smr.git] / gui / app / models / organization.rb
blob1a37a5b7ae33367d84ad0541c7a7ee00de3dcf15
2 # This file is part of SMR.
4 # SMR is free software: you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
7 # version.
9 # SMR is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # SMR.  If not, see <http://www.gnu.org/licenses/>.
16 class Organization < ActiveRecord::Base
17     include Smr::LinkMixin
19         has_many   :Security, :foreign_key=>:id_organization
21     ##
22     # human readable String identifying this Organization
23     def to_s
24         name
25     end
26 end