lock(locks = true) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/query_methods.rb, line 72
    def lock(locks = true)
      case locks
      when String, TrueClass, NilClass
        clone.tap {|r| r.lock_value = locks || true }
      else
        clone.tap {|r| r.lock_value = false }
      end
    end
Register or log in to add new notes.