eadz/double_entry — pull request #2 by eadz (2014-08-18 07:29:47+00:00)
Title: Can lock non scoped account

fix bug preventing locking a scoped and a non scoped account at the same time.

The added spec fails without the to_s due to an ArgumentError for the <=> operator ( the second scope was nil).

Added a second commit to simplify code and remove the if statement.