• Vitali Tatarintev's avatar
    Fetch payload body from params[:notification] · d70c5dc7
    Vitali Tatarintev authored
    Fetch payload body from `params[:notification]` instead of slicing out
    service params such as controller, and action names.
    
    If the "Content-Type" header of your request is set
    to "application/json", Rails will automatically load your parameters
    into the params hash, which you can access as you would normally.
    
    https://guides.rubyonrails.org/v5.2/
    action_controller_overview.html#json-parameters
    d70c5dc7
notifications_controller.rb 1.24 KB