664552ac02
Update to latest Rails. A little bit of jiggery-pokery is involved, since they neglected to re-include vendored Rack in this release.
7 lines
157 B
Ruby
7 lines
157 B
Ruby
class Toy < ActiveRecord::Base
|
|
set_primary_key :toy_id
|
|
belongs_to :pet
|
|
|
|
named_scope :with_name, lambda { |name| {:conditions => {:name => name}} }
|
|
end
|