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 +4 -4
- data/lib/sql_search_n_sort/sql_sort_setup.rb +2 -1
- data/lib/sql_search_n_sort/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +13928 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86d868a38abf79da0f36beadea5c86a0ccc2a489
|
4
|
+
data.tar.gz: 9e6e252f7b82a38264eca8d0f17a29f89e7f27c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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) ?
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|