Project

General

Profile

« Previous | Next » 

Revision edf4198b

Added by Ohad Levy almost 14 years ago

  • ID edf4198b504808ba4bec5a354500049e0dbef44a

fixes #271 - remove active scaffold plugin

View differences:

app/models/model.rb
validates_presence_of :name
default_scope :order => 'name'
def to_label
name
end
alias_method :to_s, :to_label
alias_attribute :to_s, :name
alias_attribute :to_label, :name
end

Also available in: Unified diff