Rubocop update #2751

This commit is contained in:
Priit Tark 2015-07-03 15:40:29 +03:00
parent 8946a476c2
commit 7ac6d6b362
5 changed files with 11 additions and 8 deletions

View file

@ -3,7 +3,7 @@ class BankTransaction < ActiveRecord::Base
belongs_to :bank_statement
has_one :account_activity
scope :unbinded, -> {
scope :unbinded, lambda {
where('id NOT IN (SELECT bank_transaction_id FROM account_activities where bank_transaction_id IS NOT NULL)')
}