Fix rubocop

This commit is contained in:
Martin Lensment 2015-04-14 14:02:17 +03:00
parent 6635c0fd62
commit df1fcf9cc1
3 changed files with 4 additions and 5 deletions

View file

@ -1,7 +1,5 @@
class Admin::BankTransactionsController < AdminController
load_and_authorize_resource
def show
end
def show; end
end

View file

@ -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(', ')

View file

@ -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