Skip to content
  • Edouard CHIN's avatar
    ae3eecb3
    Add SafeBuffer to the list of messagepack serializable type: · ae3eecb3
    Edouard CHIN authored
    - Fix #54132
    - ### Problem
    
      If an application sets its cookie serializer to message pack, it is not
      possible to add a SafeBuffer in its flash message.
    
      ```ruby
      class PostController < ApplicationController
        def index
          flash.notice = t(:hello_html) # Raises an error
        end
      end
      ```
    
      ### Solution
    
      Add SafeBuffer to the list of registered messagepack types.
    ae3eecb3
    Add SafeBuffer to the list of messagepack serializable type:
    Edouard CHIN authored
    - Fix #54132
    - ### Problem
    
      If an application sets its cookie serializer to message pack, it is not
      possible to add a SafeBuffer in its flash message.
    
      ```ruby
      class PostController < ApplicationController
        def index
          flash.notice = t(:hello_html) # Raises an error
        end
      end
      ```
    
      ### Solution
    
      Add SafeBuffer to the list of registered messagepack types.
Loading