Revert "mistake commit"

This reverts commit 2608b72d65.
This commit is contained in:
Matthew Kaito Juyuan Fu committed 2012-02-03 14:39:15 +08:00
1 parent 2608b72d65
commit f530eb7112
6 files changed
+1 -49

No files matched your search

-9
View File
@@ -16,15 +16,6 @@ class AdBanner
embeds_many :ad_images, :cascade_callbacks => true
FX_TYPES = ["blindX","blindY","blindZ","cover","curtainX","curtainY","fade","fadeZoom","growX","growY","scrollUp","scrollDown","scrollLeft","scrollRight","scrollHorz","scrollVert","shuffle","slideX","slideY","toss","turnUp","turnDown","turnLeft","turnRight","uncover","wipe","zoom"]
def display?
if (self.post_date <= Date.today && (self.unpost_date.nil? || self.unpost_date>= Date.today))
return true
end
return false
end
def new_ad_images=(*attrs)
attrs[0].each do |attr| #Loop by JSs,Themes,Imgs
unless attr[:file].nil?
-9
View File
@@ -13,13 +13,4 @@ class AdImage
embedded_in :ad_banner
def get_delay_time
time = ''
if self.time_to_next.nil?
time = '1000'
else
time = (self.time_to_next.to_i * 1000).to_s
end
time
end
end