Module: GovukPublishingComponents::ApplicationHelper

Defined in:
app/helpers/govuk_publishing_components/application_helper.rb

Class Method Summary collapse

Class Method Details

.get_application_name_from_path(path) ⇒ Object



3
4
5
# File 'app/helpers/govuk_publishing_components/application_helper.rb', line 3

def self.get_application_name_from_path(path)
  path.to_s.split("/")[-1]
end