sql_search_n_sort 1.13 → 1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93901d3036e903125778c2d7eb8115cd02b0c4be
4
- data.tar.gz: 08d051cb96d9f5ee92b30c2146d1a0c9b8b1a9cc
3
+ metadata.gz: 86d868a38abf79da0f36beadea5c86a0ccc2a489
4
+ data.tar.gz: 9e6e252f7b82a38264eca8d0f17a29f89e7f27c2
5
5
  SHA512:
6
- metadata.gz: 6fc2737fc8209d140fed63da7e29c070e2b97aea47e616d7d6487defe1e4440bf374a87b6a6808d3c64e03843bb544b65c957d89b7bb5d8c2628e74b211c5939
7
- data.tar.gz: ce47e070111388a815601ed09d6a93d0bebf7e575c4bd45c953828efe920c183abd184c63ab4100c099b38df227dea230637b9199659925dd2c2cd29c9e40362
6
+ metadata.gz: 29f5b35ee7c0c8b96f0a2387de13c4dbdf820dfa4b763e0eae43a1804a1d8108f3d950df52e41af96211b0120ea5eb80b9522bae1232bc256c3345c9d00eb08e
7
+ data.tar.gz: 9d4c590b606841240a8b002e65a5d40e39af40bea29b62a3f37497a4076856da20dc8d32d76ccfceb5c47ac50bfcc319d17fc0f8c10ce8eee7217ccef4a18367
@@ -1,7 +1,8 @@
1
1
  module SqlSortSetup
2
2
 
3
3
  def setup_sql_sort
4
- model = controller_name.singularize.capitalize.constantize
4
+ #binding.pry
5
+ model = controller_name.classify.constantize
5
6
  if model.is_a? SqlSearchableSortable
6
7
  if params[:sort_by]
7
8
  @sort_by = (params[:sort_by].split(' ').length > 1) ?
@@ -1,3 +1,3 @@
1
1
  module SqlSearchNSort
2
- VERSION = "1.13"
2
+ VERSION = "1.15"
3
3
  end
Binary file