Raises ArgumentError when try to define a scope without a callable
This changes the actual exception `NoMethodError: undefined method `call' for #<ActiveRecord::Relation []>` to a `ArgumentError` when try to define a scope without a callable.
Showing
想要评论请 注册 或 登录