Class: Gera::PaymentSystemDecorator

Inherits:
ApplicationDecorator
  • Object
show all
Defined in:
app/decorators/gera/payment_system_decorator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.decorated_classObject



15
16
17
# File 'app/decorators/gera/payment_system_decorator.rb', line 15

def self.decorated_class
  PaymentSystem
end

Instance Method Details

#actionsObject



11
12
13
# File 'app/decorators/gera/payment_system_decorator.rb', line 11

def actions
  h.link_to t('.edit'), h.edit_payment_system_path(object), class: 'btn btn-outline btn-default btn-sm' if object.updatable_by? current_user
end

#iconObject



7
8
9
# File 'app/decorators/gera/payment_system_decorator.rb', line 7

def icon
  h.ps_icon object, size: 32
end