Sha256: c9b734b1be73f6a81ef2307f433985fa37d76303d61622c5d2506c8944b30056

Contents?: true

Size: 288 Bytes

Versions: 6

Compression:

Stored size: 288 Bytes

Contents

require "dry/web/settings"
require "types"

module <%= config[:camel_cased_app_name] %>
  class Settings < Dry::Web::Settings
    setting :database_url, Types::Strict::String.constrained(filled: true)
    setting :session_secret, Types::Strict::String.constrained(filled: true)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-web-roda-0.7.5 lib/dry/web/roda/templates/settings.rb.tt
dry-web-roda-0.7.4 lib/dry/web/roda/templates/settings.rb.tt
dry-web-roda-0.7.3 lib/dry/web/roda/templates/settings.rb.tt
dry-web-roda-0.7.2 lib/dry/web/roda/templates/settings.rb.tt
dry-web-roda-0.7.1 lib/dry/web/roda/templates/settings.rb.tt
dry-web-roda-0.7.0 lib/dry/web/roda/templates/settings.rb.tt