Method: ActiveRecord::NoTouching.apply_to
- Defined in:
- activerecord/lib/active_record/no_touching.rb
.apply_to(klass) ⇒ Object
:nodoc:
29 30 31 32 33 34 |
# File 'activerecord/lib/active_record/no_touching.rb', line 29 def apply_to(klass) # :nodoc: klasses.push(klass) yield ensure klasses.pop end |