default speed added

This commit is contained in:
Harry Bomrah 2015-10-06 15:30:59 +08:00
parent 5731fa0e84
commit 6a2525bd65
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class AdBannersController < ApplicationController
"ad_fx" => adbanner.ad_fx,
"speed" => adbanner.speed,
"title" => adbanner.title,
"timeout" => adbanner.timeout,
"timeout" => (adbanner.timeout * 1000),
"more" => "More"
},
"images" => images

View File

@ -8,7 +8,7 @@ class Banner
field :height, type: Integer
field :speed, type: Integer
field :title, type: String
field :timeout, type: Integer
field :timeout, type: Integer, default: 5
field :width, type: Integer
has_many :ad_images , dependent: :delete