Skip to content

Commit

Permalink
add controllers to create action to prevent controller breaking if va…
Browse files Browse the repository at this point in the history
…lidation fails
  • Loading branch information
r-ferrier committed Feb 1, 2024
1 parent 6bfea42 commit 0df4af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/partners_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PartnersController < Admin::ApplicationController
before_action :set_partner, only: %i[show edit update destroy clear_address]
before_action :set_tags, only: %i[new create edit]
before_action :set_neighbourhoods, only: %i[new edit]
before_action :set_partner_tags_controller, only: %i[new edit update]
before_action :set_partner_tags_controller, only: %i[new create edit update]

def index
@partners = policy_scope(Partner).order({ updated_at: :desc }, :name).includes(:address)
Expand Down

0 comments on commit 0df4af8

Please sign in to comment.