Method: ZK::Mongoid::Locking#zk_lock_name
- Defined in:
- lib/zk/mongoid.rb
#zk_lock_name(name = nil) ⇒ Object
:nodoc:
112 113 114 |
# File 'lib/zk/mongoid.rb', line 112 def zk_lock_name(name=nil) #:nodoc: [self.class.to_s, self.id.to_s, name].compact.join('-') end |