From 8a9f212e9ac15b9edc17d0ca642886b68668f9d3 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 21 Nov 2018 13:48:13 -0600 Subject: [PATCH] Remove redudant campaign_template related code --- app/models/campaign.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/campaign.rb b/app/models/campaign.rb index efc145bd..d532a312 100644 --- a/app/models/campaign.rb +++ b/app/models/campaign.rb @@ -164,17 +164,13 @@ class Campaign < ActiveRecord::Base (self.end_datetime.to_date - Date.today).to_i end - def customizable_attributes_list - campaign_template.customizable_attributes_list if campaign_template - end def child_params excluded_for_peer_to_peer = %w( - id created_at updated_at slug profile_id campaign_template_id url + id created_at updated_at slug profile_id url total_raised show_recurring_amount external_identifier parent_campaign_id reason_for_supporting metadata ) - excluded_for_peer_to_peer.push(customizable_attributes_list) attributes.except(*excluded_for_peer_to_peer) end