21 lines
416 B
Ruby
21 lines
416 B
Ruby
|
class AdBannersController < ApplicationController
|
||
|
def widget
|
||
|
adbanners = Banner.all
|
||
|
banner = adbanners.collect do |b|
|
||
|
{
|
||
|
"ad_fx" => b.ad_fx,
|
||
|
"height" => b.body,
|
||
|
"wight" => b.weight,
|
||
|
"speed" => b.speed,
|
||
|
"title" => b.title,
|
||
|
"timeout" => b.timeout,
|
||
|
"more" => "More"
|
||
|
}
|
||
|
end
|
||
|
{
|
||
|
"extras" => {},
|
||
|
"data" => banner
|
||
|
}
|
||
|
end
|
||
|
end
|