lib/perus/server/admin.rb in perus-0.1.17 vs lib/perus/server/admin.rb in perus-0.1.18
- old
+ new
@@ -17,10 +17,10 @@
load_site_information
end
# list
get '/admin/#{plural}' do
- @records = #{klass}.all
+ @records = #{klass}.dataset.order_by(:name).all
erb :'admin/index'
end
# new form
get '/admin/#{plural}/new' do