Class: CreditorDecorator

Inherits:
SimpleDecorator::Base show all
Defined in:
app/decorators/creditor_decorator.rb

Instance Method Summary collapse

Methods inherited from SimpleDecorator::Base

#component

Methods included from SimpleDecorator::RailsHelpers

#try

Instance Method Details

#cant_have_crc_messageObject



8
9
10
# File 'app/decorators/creditor_decorator.rb', line 8

def cant_have_crc_message
  t('creditor.messages.cant_have_crc') unless company?
end

#commercial_registration_dateObject



4
5
6
# File 'app/decorators/creditor_decorator.rb', line 4

def commercial_registration_date
  localize super if super
end