app/controllers/phcmemberspro/members/contacts_controller.rb in phcmemberspro-3.0.5 vs app/controllers/phcmemberspro/members/contacts_controller.rb in phcmemberspro-3.0.6

- old
+ new

@@ -6,13 +6,10 @@ # Security & Action Filters before_filter :authenticate_user! layout 'layouts/phcmemberspro/members/members_all.html.erb' before_action :set_members_contact, only: [:show, :edit, :update, :destroy] - # Auto Complete - autocomplete :members_contact, :mccompanyname - # Add Member Contact Information before_action :phc_member_mains_info def phc_member_mains_info @members_main = Members::Main.find(params[:main_id]) @@ -67,10 +64,10 @@ end # Delete Action def destroy @main = Members::Main.find(params[:main_id]) - @members_contact = @main.find(params[:id]) + @members_contact = @main.contacts.find(params[:id]) @members_contact.destroy redirect_to members_main_contacts_path, notice: 'Member contact information was successfully destroyed.' end private