Project

General

Profile

Download (250 Bytes) Statistics
| Branch: | Tag: | Revision:
class Parameter < ActiveRecord::Base
acts_as_audited
validates_presence_of :name, :value
validates_format_of :name, :value, :with => /\A(\S+\s?)+\Z/, :message => "can't be blank or contain trailing white spaces."

def to_s
name
end
end
(20-20/26)