Hobo / hobo

The web app builder for Rails (moved from tablatom/hobo)
http://hobocentral.net
103 stars 39 forks source link

Update model.rb #46

Closed tacid closed 10 years ago

tacid commented 10 years ago

сhange parse_sort_param has to check for db_sort_field.empty? not just db_sort_field

db_sort_field is String (.to_s), so if we want condition to has any sense we should to check for empty? string, because any String (even "") will evaluate as true.