Repository navigation
Show full error messages when include_object_name is set - #3540
Merged
parndt merged 1 commit intoNov 9, 2026
Merged
Conversation
parndt
added a commit
to refinery/refinerycms-authentication-devise
that referenced
this pull request
Nov 9, 2026
Points Rails 7.2+ at refinery/refinerycms#3540 (b2d9fed) so the password reset specs prove the fix. Return to branch: "main" once it merges.
include_object_name is set
parndt
force-pushed
the
fix/error-messages-full-message
branch
from
November 9, 2026 10:17
393d825 to
e91804c
Compare
The Rails 7 errors API update (03edec5) changed the include_object_name branch of _error_messages from full_messages to error.message, so forms showed "can't be blank" instead of "Title can't be blank". crudify, the pages and images admin, and the engine generator's form template all rely on this branch.
parndt
force-pushed
the
fix/error-messages-full-message
branch
from
November 9, 2026 10:34
e91804c to
fd344bb
Compare
parndt
changed the base branch from
ci/test-dependencies
to
fix/engine-generator-frontend-path
November 9, 2026 10:35
parndt
added a commit
to refinery/refinerycms-authentication-devise
that referenced
this pull request
Nov 10, 2026
Points Rails 7.2+ at refinery/refinerycms#3540 (b2d9fed) so the password reset specs prove the fix. Return to branch: "main" once it merges.
parndt
added a commit
to refinery/refinerycms-authentication-devise
that referenced
this pull request
Nov 17, 2026
This brings the extension up to date with refinerycms `main` and gets the CI matrix green across Ruby 3.2–4.0 and Rails 6.1, 7.2, 8.0 and 8.1, on sqlite, MySQL and Postgres. The Gemfile now tracks refinerycms `main` rather than `master`, and takes the Rails version from `RAILS_VERSION`. On Rails 8.0 and earlier, `json` stays below 3, because ActiveSupport still passes `quirks_mode` to `JSON.generate` and json 3 rejects it. For Ruby 3.4, older Rails gets `mutex_m` back, and the Rakefile requires `logger` and uses `File.exist?`. Two fixes were needed for newer Rails and rspec. The admin `UsersController` has no `show` action, but `crudify` registered a find callback for it, which Rails 7.1+ refuses; passing `exclude_from_find: :show` sorts that out. In the specs, rspec-core 3.13 applies `config.extend` before `config.include`, so including `Devise::Test::ControllerHelpers` from `ControllerMacros.extended` ran before rspec-rails had defined `setup`. It's now included through `config.include` instead. The password-reset specs were also failing because core's `_error_messages` partial dropped the attribute name, showing "is invalid" rather than "Reset password token is invalid". That was fixed in refinery/refinerycms#3540, which has now merged. Finally, there's a trusted-publishing release workflow, so pushing a `v*` tag builds the gem and publishes it to RubyGems.org. It runs in the `release` environment, which only `v*` tags can deploy to. Closes #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When #3518 moved to the Rails 7 errors API, both branches of
refinery/admin/_error_messagesstarted renderingerror.message. Theinclude_object_namebranch used to renderfull_messages, so forms now show "can't be blank" instead of "Title can't be blank". 4.1.0 shipped with this.include_object_name: trueis used bycrudify, the pages and images admin, and the engine generator's_formtemplate. The generator's spec template expects"Title can't be blank", so newly generated extensions fail their own feature specs. It also breaks two password-reset specs in refinerycms-authentication-devise (refinery/refinerycms-authentication-devise#56).Change
error.full_messagein theinclude_object_namebranch