app/controllers/administrate/application_controller.rb in administrate-0.1.4 vs app/controllers/administrate/application_controller.rb in administrate-0.1.5

- old
+ new

@@ -1,6 +1,8 @@ module Administrate class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + def index search_term = params[:search].to_s.strip resources = Administrate::Search.new(resource_resolver, search_term).run resources = order.apply(resources) resources = resources.page(params[:page]).per(records_per_page)