default speed added
This commit is contained in:
parent
5731fa0e84
commit
6a2525bd65
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue