diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 21:40:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 21:40:59 -0700 |
commit | 84e8875c559dd63f69bad536a660dfe2666cf289 (patch) | |
tree | f11afb60481d3ed43e1a7c55d14835cea3f758cc /lib/arel | |
parent | e4e81cdcf00d9bc023502bf1ce2e6dad40296835 (diff) | |
download | rails-84e8875c559dd63f69bad536a660dfe2666cf289.tar.gz rails-84e8875c559dd63f69bad536a660dfe2666cf289.tar.bz2 rails-84e8875c559dd63f69bad536a660dfe2666cf289.zip |
implementing locked
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index ce74daab82..c62101077a 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -30,6 +30,10 @@ module Arel self end + def locked + @head.lock + end + def on *exprs @ctx.froms.last.constraint = Nodes::On.new(collapse(exprs)) self |