Sha256: 2c17b9eef0af459e62742d7114c59200e70a1b6fdc501ef313e56bc0e2453cb6
Contents?: true
Size: 632 Bytes
Versions: 68
Compression:
Stored size: 632 Bytes
Contents
class ::IshManager::CategoriesController < IshManager::ApplicationController before_action :set_lists def index authorize! :categories_index, IshManager::Ability # @categories = Category.all_hierarchical @categories_flat = Category.all_flat @tags = Category.all_tags end def show @category = WpTag.find params[:id] authorize! :show, @category ## same as in leads#index @leads = @category.leads if params[:q].present? @leads = @leads.where(" email LIKE ? ", "%#{params[:q]}%" ) end @leads = @leads.page( params[:leads_page] ).per( current_profile.per_page ) end end
Version data entries
68 entries across 68 versions & 1 rubygems