Sha256: 23e36f496ca168475cba82b2b3908f8a188447c794ae7d58280f11c0e93a2bdf

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

<%= application_module %>::Application.boot :persistence, namespace: true, from: :snowpack do
  configure do |config|
    config.database_url = container[:settings].database_url
    config.global_extensions = [:postgres]
    config.connection_extensions = %i[error_sql pg_array pg_json pg_enum]
    config.auto_registration_root = container.root.join("lib/<%= application_path %>/persistence").to_s
    config.auto_registration_namespace = "<%= application_module %>::Persistence"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
snowpack-1.0.0.alpha6 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
snowpack-1.0.0.alpha5 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
snowpack-1.0.0.alpha4 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
snowpack-1.0.0.alpha3 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
snowpack-1.0.0.alpha2 lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt