Class: Solidcrud::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionController::Flash, Authentication
Defined in:
app/controllers/solidcrud/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#flashObject

Override flash method to work around Rails 7.2 delegation issue



9
10
11
12
13
14
# File 'app/controllers/solidcrud/application_controller.rb', line 9

def flash
  @_flash ||= super
rescue NoMethodError
  # Fallback for Rails 7.2 compatibility
  session['flash'] ||= ActionDispatch::Flash::FlashHash.new
end