mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
|