diff options
author | Jesse Storimer <jstorimer@gmail.com> | 2011-01-20 00:37:05 -0500 |
---|---|---|
committer | Jesse Storimer <jstorimer@gmail.com> | 2011-01-20 00:37:05 -0500 |
commit | 6c65b0176223c90e08903ebc1a9a1075659f2c43 (patch) | |
tree | 53923dbaf7ab3674459ae297919ebbd20b83404e /lib/arel/nodes/lock.rb | |
parent | dae7a245f8ec9f8eb5d9866938ea46ed7c88dcf1 (diff) | |
download | rails-6c65b0176223c90e08903ebc1a9a1075659f2c43.tar.gz rails-6c65b0176223c90e08903ebc1a9a1075659f2c43.tar.bz2 rails-6c65b0176223c90e08903ebc1a9a1075659f2c43.zip |
Allow database specific locking clauses to be used
Diffstat (limited to 'lib/arel/nodes/lock.rb')
-rw-r--r-- | lib/arel/nodes/lock.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/nodes/lock.rb b/lib/arel/nodes/lock.rb index e5fb258e26..f4eaf125e0 100644 --- a/lib/arel/nodes/lock.rb +++ b/lib/arel/nodes/lock.rb @@ -1,6 +1,10 @@ module Arel module Nodes class Lock < Arel::Nodes::Node + attr_reader :locking + def initialize locking = true + @locking = locking + end end end end |