10 lines
268 B
Ruby
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
|