diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:06:40 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-28 03:06:40 +0000 |
commit | fed7d334f2904afc0955a6496859a8779f3d965e (patch) | |
tree | c44df1dcf53cac1b72a7703e56a0da750f2d1b33 /activerecord/lib/active_record/locking.rb | |
parent | 3e734490c6b3cfa049ec95caa4b8e0bf745976fd (diff) | |
download | rails-fed7d334f2904afc0955a6496859a8779f3d965e.tar.gz rails-fed7d334f2904afc0955a6496859a8779f3d965e.tar.bz2 rails-fed7d334f2904afc0955a6496859a8779f3d965e.zip |
Fixed documentation
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/locking.rb')
-rw-r--r-- | activerecord/lib/active_record/locking.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/locking.rb b/activerecord/lib/active_record/locking.rb index 572dd29ba0..ca83a98b30 100644 --- a/activerecord/lib/active_record/locking.rb +++ b/activerecord/lib/active_record/locking.rb @@ -60,15 +60,15 @@ module ActiveRecord end class << self - def set_locking_column( value=nil, &block ) + def set_locking_column(value = nil, &block) define_attr_method :locking_column, value, &block end - def locking_column + def locking_column #:nodoc: reset_locking_column end - def reset_locking_column + def reset_locking_column #:nodoc: default = 'lock_version' set_locking_column(default) default |