From df1fcf9cc1d005f8f0ebb7bf3519cc444d7b0c6b Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 14 Apr 2015 14:02:17 +0300 Subject: [PATCH] Fix rubocop --- app/controllers/admin/bank_transactions_controller.rb | 4 +--- app/models/invoice.rb | 3 ++- app/models/registrar.rb | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/controllers/admin/bank_transactions_controller.rb b/app/controllers/admin/bank_transactions_controller.rb index ee5ed809e..36ab089e5 100644 --- a/app/controllers/admin/bank_transactions_controller.rb +++ b/app/controllers/admin/bank_transactions_controller.rb @@ -1,7 +1,5 @@ class Admin::BankTransactionsController < AdminController load_and_authorize_resource - def show - - end + def show; end end diff --git a/app/models/invoice.rb b/app/models/invoice.rb index c72982e59..fc4a1a6af 100644 --- a/app/models/invoice.rb +++ b/app/models/invoice.rb @@ -4,7 +4,8 @@ class Invoice < ActiveRecord::Base has_many :invoice_items accepts_nested_attributes_for :invoice_items - validates :invoice_type, :due_date, :currency, :seller_name, :seller_iban, :buyer_name, :invoice_items, :vat_prc, presence: true + validates :invoice_type, :due_date, :currency, :seller_name, + :seller_iban, :buyer_name, :invoice_items, :vat_prc, presence: true def seller_address [seller_street, seller_city, seller_state, seller_zip].reject(&:blank?).compact.join(', ') diff --git a/app/models/registrar.rb b/app/models/registrar.rb index 5c3365f85..6bf55a865 100644 --- a/app/models/registrar.rb +++ b/app/models/registrar.rb @@ -49,7 +49,7 @@ class Registrar < ActiveRecord::Base end end - def issue_prepayment_invoice(amount, description = nil) + def issue_prepayment_invoice(amount, description = nil) # rubocop:disable Metrics/MethodLength # Currently only EIS can issue invoices eis = self.class.eis