Sha256: a4a3b63f0a918d4ed32928bd8d0f1cac50835fa9588d5e8d58a4e46b6f279433
Contents?: true
Size: 454 Bytes
Versions: 13
Compression:
Stored size: 454 Bytes
Contents
module Flexite module ApplicationHelper def present(*args, presenter) klass = "Flexite::#{presenter.to_s.camelize}Presenter".constantize yield(klass.new(self, *args)) end def back_to_app link_to "Back to #{Flexite.config.app_name}", Flexite.config.app_link, class: 'btn btn-default' end def stage_select select_tag :stage, options_for_select(Flexite.config.stages), class: 'form-control' end end end
Version data entries
13 entries across 13 versions & 1 rubygems