return true/false instead true/nil
Add missing & in all?(&:available?)
rename .lock? to .lockable? and add .locked?
Add class method .coliding_locks
typo coliding -> colliding
whitespace
Ensure that it works when task_id nil

without arel it generates wrong sql
Better var name
Merge pull request #46 from pitr-ch/master

Minor improvements and fixes