lib/simple_auth/templates/install/initializer.rb in simple_auth-3.1.1 vs lib/simple_auth/templates/install/initializer.rb in simple_auth-3.1.2
- old
+ new
@@ -18,8 +18,12 @@
# Logged users will be redirect to this url
# when `before_action :redirect_logged_user` filter is used.
config.logged_url = proc { dashboard_path }
+ # Set the flash message key.
+ # This will be used when setting messages for unlogged/unauthorized users.
+ config.flash_message_key = :alert
+
# Install SimpleAuth helpers to the controllers.
config.install_helpers!
end