method

lock

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: SelectManager
lock(locking = Arel.sql("FOR UPDATE")) 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/arel/select_manager.rb, line 54
    def lock(locking = Arel.sql("FOR UPDATE"))
      case locking
      when true
        locking = Arel.sql("FOR UPDATE")
      when Arel::Nodes::SqlLiteral
      when String
        locking = Arel.sql locking
      end

      @ast.lock = Nodes::Lock.new(locking)
      self
    end
Register or log in to add new notes.