命名空间
方法
实例公共方法
no_touching?() 链接
如果类设置了 no_touching,则返回 true,否则返回 false。
Project.no_touching do Project.first.no_touching? # true Message.first.no_touching? # false end
来源: 显示 | 在 GitHub 上
# File activerecord/lib/active_record/no_touching.rb, line 53 def no_touching? NoTouching.applied_to?(self.class) end