Flowdock
method

lock

Importance_0
v3.0.5 - Show latest stable - 0 notes - Class: ActiveRecord::QueryMethods
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 99
    def lock(locks = true)
      relation = clone

      case locks
      when String, TrueClass, NilClass
        relation.lock_value = locks || true
      else
        relation.lock_value = false
      end

      relation
    end
Register or log in to add new notes.