mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2e45542942
author.posts.create should take into account default_scope defined on post. [#3939: state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
7 lines
115 B
Ruby
7 lines
115 B
Ruby
class Bulb < ActiveRecord::Base
|
|
|
|
default_scope :conditions => {:name => 'defaulty' }
|
|
|
|
belongs_to :car
|
|
|
|
end
|