Sha256: 1509ead8741c291d560196cb194648f8b905256b6880c7cd2f9aff7e043a6cad
Contents?: true
Size: 246 Bytes
Versions: 3
Compression:
Stored size: 246 Bytes
Contents
class Admin::EventsController < Admin::ResourceController paginate_models :per_page => 20 def load_models finder = params[:all] ? Event.all : Event.future_and_current self.models = finder.paginate(pagination_parameters) end end
Version data entries
3 entries across 3 versions & 1 rubygems