Skip to content

ApplicationContract is not defined. Rails 7.1.2 #62

@alexeevit

Description

@alexeevit

Describe the bug

Hey, I ran into an issue when with a clean setup I don't have defined ApplicationContract.
This is my first time using dry-rails, maybe I'm doing something wrong? Demo app link is below.

UPD:

  • checked with latest version from github
  • checked with cherry-picking the feature
    result is the same

To Reproduce

$ rails new myapp --minimal
$ bundle add dry-rails
$ bin/rails c
irb(main):001> ApplicationContract
(irb):1:in `<main>': uninitialized constant ApplicationContract (NameError)

Demo app

My environment

  • Ruby version: 3.1.2
  • Rails version: 7.1.2
  • OS: Debian bookworm in docker & macos 13.4.1
  • dry-rails 0.7.0
  • dry-system 1.0.1
  • dry-schema 1.13.3
  • dry-validation 1.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions