lib/hanami/application_name.rb in hanami-1.0.0 vs lib/hanami/application_name.rb in hanami-1.1.0.beta1
- old
+ new
@@ -100,11 +100,9 @@
# Cleans a string to be a functioning application name.
#
# @since 0.2.1
# @api private
def sanitize(name)
- Utils::String.new(
- name.strip
- ).namespace.underscore.to_s
+ Utils::String.transform(name.strip, :namespace, :underscore)
end
end
end