Module: IgnitionKit::Helpers
- Defined in:
- app/lib/ignition_kit/helpers.rb
Instance Method Summary collapse
- #button(*args, **kw_args, &block) ⇒ Object
- #destructive_button(*args, **kw_args, &block) ⇒ Object
- #ghost_button(*args, **kw_args, &block) ⇒ Object
- #primary_button(*args, **kw_args, &block) ⇒ Object
Instance Method Details
#button(*args, **kw_args, &block) ⇒ Object
3 4 5 |
# File 'app/lib/ignition_kit/helpers.rb', line 3 def (*args, **kw_args, &block) Button.new(*args, **kw_args, &block).render end |
#destructive_button(*args, **kw_args, &block) ⇒ Object
11 12 13 |
# File 'app/lib/ignition_kit/helpers.rb', line 11 def (*args, **kw_args, &block) Button.new(*args, **kw_args, variant: :destructive, &block).render end |