Sha256: f90d52ac82c52d94fdf90c33f1de1251a2cb74a6f4fb11c60df0173e9bf3a80d
Contents?: true
Size: 573 Bytes
Versions: 4
Compression:
Stored size: 573 Bytes
Contents
module SqliteExt # This module is prepended to `SQLite3::Database` to inject new # initialization behavior. module InitInjection # Adds functions registered with SqliteExt to each new # instance before it is returned from `.new` or `.open`or is # passed to the given block. def initialize(file, *other_init_args) if block_given? super file, *other_init_args do SqliteExt.enhance_db_session self yield self end else super SqliteExt.enhance_db_session self end end end end
Version data entries
4 entries across 4 versions & 1 rubygems