方法
Attributes
| [R] | pattern |
类公共方法
finder() 链接
源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/dynamic_matchers.rb, line 100 def finder "find_by!" end
match?(name) 链接
源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/dynamic_matchers.rb, line 96 def match?(name) pattern.match?(name) && self end