提交 83683aa7 编写于 作者: J Justin Collins

Add test for single argument calls to scope

上级 94fd4fb6
class Account < ActiveRecord::Base
validates_format_of :name, :with => /^[a-zA-Z]+$/
named_scope :all
end
......@@ -21,4 +21,6 @@ class User < ActiveRecord::Base
something = something_helper
where("something = #{something}")
}
scope :all
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册