Revision edf4198b
Added by Ohad Levy about 14 years ago
- ID edf4198b504808ba4bec5a354500049e0dbef44a
app/models/ptable.rb | ||
---|---|---|
validates_presence_of :layout
|
||
validates_format_of :name, :with => /\A(\S+\s?)+\Z/, :message => "can't be blank or contain trailing white spaces."
|
||
|
||
def to_s
|
||
name
|
||
end
|
||
alias_attribute :to_s, :name
|
||
alias_attribute :to_label, :name
|
||
end
|
Also available in: Unified diff
fixes #271 - remove active scaffold plugin