Sha256: 24fcb0da63165e39d6b470db882dce7693517e2ff16e3de4b3f66f8935213175
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true module Sail module ApplicationHelper # :nodoc: def main_app Rails.application.class.routes.url_helpers end def formatted_date(setting) DateTime.parse(setting.value).utc.strftime(Sail::ConstantCollection::INPUT_DATE_FORMAT) end def settings_container_class(number_of_pages) number_of_pages.zero? ? "empty" : "" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sail-3.6.1 | app/helpers/sail/application_helper.rb |
sail-3.6.0 | app/helpers/sail/application_helper.rb |
sail-3.5.1 | app/helpers/sail/application_helper.rb |