Skip to content

Commit

Permalink
fix slug parse
Browse files Browse the repository at this point in the history
  • Loading branch information
beingmattlevy committed Aug 19, 2024
1 parent 1bdad7d commit fd4d430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ def stripe_publishable_api_key
end

def set_event
Rails.logger.debug { "#set_event() permitted params: #{permitted_params.inspect}" }

event_id = permitted_params[:event_id].to_i
event_slug = permitted_params[:event_id].delete("#{event_id}-")
event_slug = permitted_params[:event_id].sub("#{event_id}-",'')

Rails.logger.debug { "#set_event() => event_id = #{event_id}, event_slug = #{event_slug} params[:event_id] => #{permitted_params[:event_id]}" }

Expand Down

0 comments on commit fd4d430

Please sign in to comment.