lib/hanami/model/migrator/sqlite_adapter.rb in hanami-model-0.7.0 vs lib/hanami/model/migrator/sqlite_adapter.rb in hanami-model-1.0.0.beta1

- old
+ new

@@ -27,11 +27,11 @@ # Initialize adapter # # @since 0.4.0 # @api private - def initialize(connection, configuration) + def initialize(configuration) super extend Memory if memory? end # @since 0.4.0 @@ -68,10 +68,10 @@ # @since 0.4.0 # @api private def path root.join( - @connection.uri.sub(/\A(jdbc:sqlite:|sqlite:\/\/)/, '') + @connection.uri.sub(/\A(jdbc:sqlite:\/\/|sqlite:\/\/)/, '') ) end # @since 0.4.0 # @api private