lib/hanami/model.rb in hanami-model-1.1.0.beta1 vs lib/hanami/model.rb in hanami-model-1.1.0.beta2
- old
+ new
@@ -80,11 +80,11 @@
@loaded = true
end
# Disconnect from the database
#
- # This is useful for reboot applications in production and to ensure that
+ # This is useful for rebooting applications in production and to ensure that
# the framework prunes stale connections.
#
# @since 1.0.0
#
# @example With Full Stack Hanami Project
@@ -100,9 +100,9 @@
# on_worker_boot do
# Hanami::Model.disconnect
# Hanami::Model.load!
# end
def self.disconnect
- configuration.connection && configuration.connection.disconnect
+ configuration.connection&.disconnect
end
end
end