Sha256: 42e8435ed27e6eadc6ed61998c3c1000452c53704828445280a54466c7e21ebc
Contents?: true
Size: 310 Bytes
Versions: 3
Compression:
Stored size: 310 Bytes
Contents
class PeopleController < AjaxController self.search_columns = [:name, :children, :rating, :income, :birthdate, :remarks] self.sort_mappings = {:city_id => 'cities.name'} protected def list_entries super.includes(:city).order('people.name, cities.country_code, cities.name') end end
Version data entries
3 entries across 3 versions & 1 rubygems