remove jbuilder from model

This commit is contained in:
Tyrel Souza 2014-04-30 14:43:11 -04:00
parent 1c6c7e02c4
commit 9bdcafd7c0

View File

@ -15,14 +15,6 @@ class Campaign < ActiveRecord::Base
self.clientid = 720
end
def to_builder
Jbuilder.new do |json|
json.partial! 'campaigns/campaign', campaign: self
end
end
def has_at_least_one_videolisting
errors.add(:base, 'Must add at least one Videolisting') if self.videolistings.blank?
end