2014-04-07 18:41:34 +00:00
|
|
|
class Videolisting < ActiveRecord::Base
|
|
|
|
belongs_to :campaign
|
2014-04-08 21:01:22 +00:00
|
|
|
validates :videocode, presence: true, uniqueness: true
|
2014-04-08 21:42:43 +00:00
|
|
|
validates :producttypeid, presence: true
|
2014-04-21 18:26:46 +00:00
|
|
|
validates :voiceoverselection, presence: true
|
|
|
|
validates :musicselection, presence: true
|
|
|
|
|
2014-04-08 21:42:43 +00:00
|
|
|
|
2014-04-15 17:04:58 +00:00
|
|
|
def asseturls_array
|
2014-04-18 19:34:44 +00:00
|
|
|
self.asseturls.split(',').collect { |url| { asseturl: url.strip } }
|
2014-04-15 17:04:58 +00:00
|
|
|
end
|
2014-04-07 18:41:34 +00:00
|
|
|
end
|