lib/administrate_ransack/searchable.rb in administrate_ransack-0.1.0 vs lib/administrate_ransack/searchable.rb in administrate_ransack-0.1.2

- old
+ new

@@ -2,9 +2,14 @@ require 'ransack' module AdministrateRansack module Searchable + def index + @dashboard = dashboard + super + end + def scoped_resource @ransack_results = super.ransack(params[:q]) @ransack_results.result(distinct: true) end end