Sha256: 15d8044c188152731c1f63944877783b4dfcc32edf89ad4698f46c1f9e5a0663

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sail-3.5.0 app/helpers/sail/application_helper.rb
sail-3.4.0 app/helpers/sail/application_helper.rb
sail-3.3.0 app/helpers/sail/application_helper.rb
sail-3.2.4 app/helpers/sail/application_helper.rb
sail-3.2.3 app/helpers/sail/application_helper.rb
sail-3.2.2 app/helpers/sail/application_helper.rb
sail-3.2.1 app/helpers/sail/application_helper.rb