lib/hanami/model/entity_name.rb in hanami-model-1.0.4 vs lib/hanami/model/entity_name.rb in hanami-model-1.1.0.beta1
- old
+ new
@@ -22,10 +22,10 @@
end
# @since 0.7.0
# @api private
def underscore
- Utils::String.new(@name).underscore.to_sym
+ Utils::String.underscore(@name).to_sym
end
# @since 0.7.0
# @api private
def to_s