lib/hanami/application_name.rb in hanami-0.8.0 vs lib/hanami/application_name.rb in hanami-0.9.0

- old
+ new

@@ -28,11 +28,11 @@ # # @return [Hanami::ApplicationName] a new instance of the application name # # @since 0.2.1 def initialize(name) - @name = sanitize(name) + @name = sanitize(name.to_s) ensure_validity! end # Returns the cleaned application name. # @@ -96,9 +96,9 @@ # @api private # @since 0.2.1 def sanitize(name) Utils::String.new( name.strip - ).underscore.to_s + ).namespace.underscore.to_s end end end