vidpush/app/models/videolisting.rb
2014-04-18 15:34:44 -04:00

10 lines
268 B
Ruby

class Videolisting < ActiveRecord::Base
belongs_to :campaign
validates :videocode, presence: true, uniqueness: true
validates :producttypeid, presence: true
def asseturls_array
self.asseturls.split(',').collect { |url| { asseturl: url.strip } }
end
end