lib/actv/event.rb in actv-2.0.0 vs lib/actv/event.rb in actv-2.1.0
- old
+ new
@@ -145,10 +145,14 @@
def is_event?
true
end
+ def video
+ self.images.detect { |i| i.video? }
+ end
+
alias online_registration? online_registration_available?
alias reg_open? registration_open?
alias reg_closed? registration_closed?
alias registration_not_open? registration_not_yet_open?
alias reg_not_open? registration_not_yet_open?
@@ -210,7 +214,5 @@
return nil if time_string.nil? or time_string.empty?
return Time.parse(time_string).utc
end
end
end
-
-