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

Version Path
radiant-event_calendar-extension-1.0.2 app/controllers/admin/events_controller.rb
radiant-event_calendar-extension-1.0.1 app/controllers/admin/events_controller.rb
radiant-event_calendar-extension-1.0.0 app/controllers/admin/events_controller.rb