lib/milestoner/views/context.rb in milestoner-17.6.0 vs lib/milestoner/views/context.rb in milestoner-17.9.0

- old
+ new

@@ -1,7 +1,8 @@ # frozen_string_literal: true +require "core" require "forwardable" require "hanami/view" module Milestoner module Views @@ -22,10 +23,12 @@ project_name project_uri project_version ] => :input - def project_slug = [project_name, project_version].compact.join("_").tr ".", "" + def project_slug + [project_name, project_version].compact.join("_").tr ".", Core::EMPTY_STRING + end def project_title = [project_label, project_version].compact.join " " end end end