Sha256: 5ae517732f74b77436c4e3ef626c670cbee8b6da16835cce246526d8a52f95bc

Contents?: true

Size: 829 Bytes

Versions: 14

Compression:

Stored size: 829 Bytes

Contents

#    This file is part of Branston.
#
#    Branston is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as published by
#    the Free Software Foundation.
#
#    Branston is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with Branston.  If not, see <http://www.gnu.org/licenses/>.

class Outcome < ActiveRecord::Base

  # Assocations
  #
  belongs_to :scenario

  # Validations
  #
  validates_presence_of :description

  def to_s
    read_attribute(:description)
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/app/models/outcome.rb
branston-0.6.5 lib/branston/app/models/outcome.rb
branston-0.6.4 lib/branston/app/models/outcome.rb
branston-0.6.3 lib/branston/app/models/outcome.rb
branston-0.6.2 lib/branston/app/models/outcome.rb
branston-0.6.1 lib/branston/app/models/outcome.rb
branston-0.6.0 lib/branston/app/models/outcome.rb
branston-0.5.2 lib/branston/app/models/outcome.rb
branston-0.5.1 lib/branston/app/models/outcome.rb
branston-0.5.0 lib/branston/app/models/outcome.rb
branston-0.4.6 lib/branston/app/models/outcome.rb
branston-0.4.5 lib/branston/app/models/outcome.rb
branston-0.4.4 lib/branston/app/models/outcome.rb
branston-0.4.3 lib/branston/app/models/outcome.rb