Sha256: 11b64105824595dd19fdb05fc00c5710d889fdb7c1023984e3fa7b7013575f2b
Contents?: true
Size: 379 Bytes
Versions: 15
Compression:
Stored size: 379 Bytes
Contents
class Admin::AdvertismentsController < AdminController before_filter :check_feature def index @ads = Ad.sys(_sid).includes({:ad_zones=>:ad_unit}).order("ads.updated_at desc") @ads = @ads.where("activated is not null").where("approved_by_id is null") @ads = @ads.page(params[:page]).per(25) end private def check_feature feature?("ads") end end
Version data entries
15 entries across 15 versions & 1 rubygems