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

Version Path
kit_cms-2.3.22 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.20 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.19 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.18 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.17 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.16 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.15 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.14 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.13 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.11 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.10 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.9 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.8 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.7 app/controllers/admin/advertisments_controller.rb
kit_cms-2.3.6 app/controllers/admin/advertisments_controller.rb