Class: Gera::PaymentSystemDecorator
- Inherits:
-
ApplicationDecorator
- Object
- ApplicationDecorator
- Gera::PaymentSystemDecorator
- Defined in:
- app/decorators/gera/payment_system_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.decorated_class ⇒ Object
15 16 17 |
# File 'app/decorators/gera/payment_system_decorator.rb', line 15 def self.decorated_class PaymentSystem end |
Instance Method Details
#actions ⇒ Object
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 |
#icon ⇒ Object
7 8 9 |
# File 'app/decorators/gera/payment_system_decorator.rb', line 7 def icon h.ps_icon object, size: 32 end |