Skip to content

Commit

Permalink
Fix for rails7: ActiveModel::Errors#keys deprecated see activeadmin/a…
Browse files Browse the repository at this point in the history
  • Loading branch information
William Peters committed Apr 11, 2023
1 parent 8ae9b99 commit b3262ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/casein/admin_user_sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%= form_for @admin_user_session, url: casein_admin_user_session_path do |f| %>
<% if @admin_user_session.errors.any? %>
<div id="error_messages" class="alert alert-danger">
<% @admin_user_session.errors.keys.each do |key| %>
<% @admin_user_session.errors.attribute_names.each do |key| %>
<%= (key.to_s.humanize + " ") unless key == :base %>
<%= @admin_user_session.errors[key].first %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion lib/casein/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Casein
VERSION_HASH = { major: 5, minor: 5, patch: 1, build: 0 }
VERSION_HASH = { major: 5, minor: 5, patch: 2, build: 0 }
VERSION = VERSION_HASH.values.join('.')
end

0 comments on commit b3262ce

Please sign in to comment.