mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Fix rubocop
This commit is contained in:
parent
6635c0fd62
commit
df1fcf9cc1
3 changed files with 4 additions and 5 deletions
|
@ -1,7 +1,5 @@
|
|||
class Admin::BankTransactionsController < AdminController
|
||||
load_and_authorize_resource
|
||||
|
||||
def show
|
||||
|
||||
end
|
||||
def show; end
|
||||
end
|
||||
|
|
|
@ -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(', ')
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue