Module: DfmWebHelper

Defined in:
app/helpers/dfm_web_helper.rb

Instance Method Summary collapse

Instance Method Details

#host_application_titleObject

Extract the host application’s name and titlecase it. Should ‘titlecase` incorrectly capitalize your app, add it as an acronym in your inflections.rb > inflect.acronym(“HRMed”)



7
8
9
10
11
12
13
# File 'app/helpers/dfm_web_helper.rb', line 7

def host_application_title
  if Rails::VERSION::MAJOR >= 6
    Rails.application.class.module_parent_name.to_s.titlecase
  else
    Rails.application.class.parent_name.to_s.titlecase
  end
end