ui_bibz 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +8 -8
  2. data/.yardoc/checksums +2 -2
  3. data/.yardoc/objects/root.dat +0 -0
  4. data/Gemfile.lock +1 -1
  5. data/doc/UiBibz.html +2 -2
  6. data/doc/UiBibz/Concerns.html +1 -1
  7. data/doc/UiBibz/Concerns/Models.html +1 -1
  8. data/doc/UiBibz/Concerns/Models/Searchable.html +1 -1
  9. data/doc/UiBibz/Concerns/Models/Searchable/ClassMethods.html +5 -5
  10. data/doc/UiBibz/Helpers.html +1 -1
  11. data/doc/UiBibz/Helpers/MetaHelper.html +1 -1
  12. data/doc/UiBibz/Helpers/UiCoreHelper.html +1 -1
  13. data/doc/UiBibz/Helpers/UiUxHelper.html +1 -1
  14. data/doc/UiBibz/Helpers/UtilsHelper.html +1 -1
  15. data/doc/UiBibz/Rails.html +1 -1
  16. data/doc/UiBibz/Rails/Engine.html +1 -1
  17. data/doc/UiBibz/Ui.html +1 -1
  18. data/doc/UiBibz/Ui/Base.html +1 -1
  19. data/doc/UiBibz/Ui/Core.html +1 -1
  20. data/doc/UiBibz/Ui/Core/Alert.html +1 -1
  21. data/doc/UiBibz/Ui/Core/Bar.html +1 -1
  22. data/doc/UiBibz/Ui/Core/Breadcrumb.html +1 -1
  23. data/doc/UiBibz/Ui/Core/BreadcrumbLink.html +1 -1
  24. data/doc/UiBibz/Ui/Core/Button.html +1 -1
  25. data/doc/UiBibz/Ui/Core/ButtonDropdown.html +1 -1
  26. data/doc/UiBibz/Ui/Core/ButtonGroup.html +1 -1
  27. data/doc/UiBibz/Ui/Core/ButtonLink.html +1 -1
  28. data/doc/UiBibz/Ui/Core/ButtonSplitDropdown.html +1 -1
  29. data/doc/UiBibz/Ui/Core/Col.html +1 -1
  30. data/doc/UiBibz/Ui/Core/Component.html +1 -1
  31. data/doc/UiBibz/Ui/Core/Dropdown.html +1 -1
  32. data/doc/UiBibz/Ui/Core/DropdownDivider.html +1 -1
  33. data/doc/UiBibz/Ui/Core/DropdownHeader.html +1 -1
  34. data/doc/UiBibz/Ui/Core/DropdownLink.html +1 -1
  35. data/doc/UiBibz/Ui/Core/Glyph.html +1 -1
  36. data/doc/UiBibz/Ui/Core/Jumbotron.html +1 -1
  37. data/doc/UiBibz/Ui/Core/Label.html +1 -1
  38. data/doc/UiBibz/Ui/Core/List.html +1 -1
  39. data/doc/UiBibz/Ui/Core/ListGroup.html +1 -1
  40. data/doc/UiBibz/Ui/Core/Nav.html +1 -1
  41. data/doc/UiBibz/Ui/Core/NavDropdown.html +1 -1
  42. data/doc/UiBibz/Ui/Core/NavLink.html +1 -1
  43. data/doc/UiBibz/Ui/Core/Navbar.html +1 -1
  44. data/doc/UiBibz/Ui/Core/NavbarForm.html +1 -1
  45. data/doc/UiBibz/Ui/Core/NavbarNav.html +1 -1
  46. data/doc/UiBibz/Ui/Core/NavbarText.html +1 -1
  47. data/doc/UiBibz/Ui/Core/Panel.html +1 -1
  48. data/doc/UiBibz/Ui/Core/ProgressBar.html +1 -1
  49. data/doc/UiBibz/Ui/Core/Row.html +1 -1
  50. data/doc/UiBibz/Ui/Core/Stars.html +1 -1
  51. data/doc/UiBibz/Ui/Ux.html +1 -1
  52. data/doc/UiBibz/Ui/Ux/Actionable.html +1 -1
  53. data/doc/UiBibz/Ui/Ux/Actions.html +1 -1
  54. data/doc/UiBibz/Ui/Ux/Column.html +1 -1
  55. data/doc/UiBibz/Ui/Ux/Columns.html +1 -1
  56. data/doc/UiBibz/Ui/Ux/Grid.html +1 -1
  57. data/doc/UiBibz/Ui/Ux/Paginable.html +1 -1
  58. data/doc/UiBibz/Ui/Ux/Searchable.html +1 -1
  59. data/doc/UiBibz/Ui/Ux/Sortable.html +1 -1
  60. data/doc/UiBibz/Ui/Ux/Store.html +1 -1
  61. data/doc/UiBibz/Ui/Ux/Table.html +1 -1
  62. data/doc/UiBibz/Ui/Ux/TablePagination.html +1 -1
  63. data/doc/UiBibz/Ui/Ux/TablePaginationPerPage.html +1 -1
  64. data/doc/UiBibz/Ui/Ux/TablePanel.html +1 -1
  65. data/doc/UiBibz/Ui/Ux/TableSearchField.html +1 -1
  66. data/doc/UiBibz/Utils.html +1 -1
  67. data/doc/UiBibz/Utils/Internationalization.html +1 -1
  68. data/doc/_index.html +1 -1
  69. data/doc/file.README.html +1 -1
  70. data/doc/index.html +1 -1
  71. data/doc/top-level-namespace.html +1 -1
  72. data/lib/ui_bibz/concerns/models/searchable.rb +20 -6
  73. data/lib/ui_bibz/version.rb +1 -1
  74. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjE4YTUyYjRkNjQ5ZTc3M2E3MDkwODQ4NjRmMDQwNzY5ZGY2MGUwYw==
4
+ N2QzZGZhNTNjOGM0NWQzOTBjMDhlYjQyNzQyNjA0ZWNkNTdjNTg1ZA==
5
5
  data.tar.gz: !binary |-
6
- MDIyOGU1Yjc1MWYzYmYxZDMzYTkzNGMxZjhiNTBlMzM2ZTU2OTVmMQ==
6
+ NjJkYTJhZDQ1ZDY3ZmFmMGRjNTIxOTc5YTUzMzgwYzNmNmE1YjhlNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjBhNTI1MjQ1NTJjNWI2OTYxYzEwMjQ0ZTQ4ZGFiYmM1OWZhOGE2ZmYwYmMy
10
- OWEzYTBlZGQ5MDM5ZTNkYTE5YmEyNmEwOGIxMmM4NDQ1ZDFkZWE0ZGE5YzUy
11
- YmIxNjNjYWVjMmEzNWUyNWRlMTdmYjJiZjlhNGNlZGUzZmNlYmI=
9
+ Mzk1NzQ2ZTVmN2RiMzU4OTJhNWY0ODg0MmY2MmRlODI2ZTk3OTcyOTJjMjhh
10
+ NTI0YzU2N2NjY2M2NzQyZmQ5NjcyN2IwNTM4MDc0YTM1ODBhMTgyZDk2MDhl
11
+ NjkyZGRjYWVkNmNhN2ZlY2I2Y2NmZWY1MWViMTdmNWRmNjRlZGY=
12
12
  data.tar.gz: !binary |-
13
- M2FlMGYzY2MxMDRiYWY0ZWQwOGIxMzJiMDQzNzNmYjI4ZTU5NGFkNWFhYjMy
14
- ZGZlMDA1NWVjZTAzYjUyOTMxNTQ0ZDRmYjZkZmJmNTZjZjA1ODUyYzE5MTUz
15
- YjFlZWYzMWYwM2UzZGMxNGMwNGI1MWY5M2EwMGExYjVjNDJkMGY=
13
+ Y2VmZjJjMDA3ZTc1YzA0MDNlZjA3MDg5Y2NjNGMxYzI3NjRjMzQxMjAyMzAw
14
+ ZDAwMzJlOGU1MjI4MmIzY2Y2ZWI4NzVjNWQwY2IxNThhODY4NjgxNDgxZmEz
15
+ MDUzZjZhNjBiYTcwYTc1ZTQyOTFhMDkxOGE3N2Q0Y2JhNzVkY2E=
data/.yardoc/checksums CHANGED
@@ -1,6 +1,6 @@
1
1
  lib/ui_bibz.rb d87b32c7833f15e5046449ab5ac2c6ec3f6cc084
2
2
  lib/ui_bibz/ui/base.rb a0840e2ee2d49117ac28b51dc89d3d724cfb6747
3
- lib/ui_bibz/version.rb e9a8e95f6d084620879a78a23405131bc0577c3f
3
+ lib/ui_bibz/version.rb fb7ca06617deaf5e1e4795e9fc49b7166ccb5c90
4
4
  lib/ui_bibz/ui/ux/grid.rb 079a9b94c43980e5ae86b9e4c50499f0153aa345
5
5
  lib/ui_bibz/ui/core/col.rb 657fd5aeed007c9d2848f99f3d7bb4f642bf756c
6
6
  lib/ui_bibz/ui/core/row.rb 539ef1d6caf28cb460671cf3877313b3fc3fd74c
@@ -24,7 +24,7 @@ lib/ui_bibz/ui/core/list/list_group.rb ff0e84c591a84b4ce63db939a37f55c4b97714a9
24
24
  lib/ui_bibz/ui/ux/table/table_panel.rb 8156dd1c99b1b3e4cd8c03e9059ff01c6024c9a9
25
25
  lib/ui_bibz/ui/core/dropdown/dropdown.rb b5c804c45e9d7a1b2b8e38788f031288ebc66749
26
26
  lib/ui_bibz/utils/internationalization.rb 247008bccd7b820cd534082a846a29e5de0063dc
27
- lib/ui_bibz/concerns/models/searchable.rb cc2e02107b4e9e40e7185865a4e17f7d11bf2cbe
27
+ lib/ui_bibz/concerns/models/searchable.rb 1971383394f32409656b7379b378516ce194ccd4
28
28
  lib/ui_bibz/ui/core/button/button_link.rb aab49e47762ac39326de4ec9a8dd9a9695ab57b6
29
29
  lib/ui_bibz/ui/core/button/button_group.rb dac533adecbb81cb1d94175d49da6782a4af6ad2
30
30
  lib/ui_bibz/ui/core/list/components/list.rb 2717ed6f342dd4ad0c92864425fe8123fb82143f
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ui_bibz (1.1.5)
4
+ ui_bibz (1.1.6)
5
5
  haml
6
6
  haml-rails
7
7
  rails (~> 4.2.0)
data/doc/UiBibz.html CHANGED
@@ -104,7 +104,7 @@
104
104
  <dt id="VERSION-constant" class="">VERSION =
105
105
 
106
106
  </dt>
107
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.1.5</span><span class='tstring_end'>&quot;</span></span></pre></dd>
107
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.1.6</span><span class='tstring_end'>&quot;</span></span></pre></dd>
108
108
 
109
109
  </dl>
110
110
 
@@ -120,7 +120,7 @@
120
120
  </div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Wed Sep 9 10:27:08 2015 by
123
+ Generated on Wed Sep 9 15:14:06 2015 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
125
  0.8.7.6 (ruby-1.9.3).
126
126
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Sep 9 10:27:08 2015 by
109
+ Generated on Wed Sep 9 15:14:06 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Sep 9 10:27:08 2015 by
109
+ Generated on Wed Sep 9 15:14:06 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -111,7 +111,7 @@
111
111
  </div>
112
112
 
113
113
  <div id="footer">
114
- Generated on Wed Sep 9 10:27:08 2015 by
114
+ Generated on Wed Sep 9 15:14:06 2015 by
115
115
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
116
116
  0.8.7.6 (ruby-1.9.3).
117
117
  </div>
@@ -145,12 +145,12 @@
145
145
  <pre class="lines">
146
146
 
147
147
 
148
- 118
149
- 119
150
- 120</pre>
148
+ 132
149
+ 133
150
+ 134</pre>
151
151
  </td>
152
152
  <td>
153
- <pre class="code"><span class="info file"># File 'lib/ui_bibz/concerns/models/searchable.rb', line 118</span>
153
+ <pre class="code"><span class="info file"># File 'lib/ui_bibz/concerns/models/searchable.rb', line 132</span>
154
154
 
155
155
  <span class='kw'>def</span> <span class='id identifier rubyid_searchable_attributes'>searchable_attributes</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span>
156
156
  <span class='ivar'>@searchable_attributes</span> <span class='op'>||=</span> <span class='id identifier rubyid_args'>args</span>
@@ -165,7 +165,7 @@
165
165
  </div>
166
166
 
167
167
  <div id="footer">
168
- Generated on Wed Sep 9 10:27:08 2015 by
168
+ Generated on Wed Sep 9 15:14:06 2015 by
169
169
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
170
170
  0.8.7.6 (ruby-1.9.3).
171
171
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Sep 9 10:27:08 2015 by
109
+ Generated on Wed Sep 9 15:14:06 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -275,7 +275,7 @@
275
275
  </div>
276
276
 
277
277
  <div id="footer">
278
- Generated on Wed Sep 9 10:27:08 2015 by
278
+ Generated on Wed Sep 9 15:14:06 2015 by
279
279
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
280
280
  0.8.7.6 (ruby-1.9.3).
281
281
  </div>
@@ -1173,7 +1173,7 @@ lib/action_view/helpers/form_helper.rb" conflict</p>
1173
1173
  </div>
1174
1174
 
1175
1175
  <div id="footer">
1176
- Generated on Wed Sep 9 10:27:08 2015 by
1176
+ Generated on Wed Sep 9 15:14:06 2015 by
1177
1177
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1178
1178
  0.8.7.6 (ruby-1.9.3).
1179
1179
  </div>
@@ -454,7 +454,7 @@
454
454
  </div>
455
455
 
456
456
  <div id="footer">
457
- Generated on Wed Sep 9 10:27:08 2015 by
457
+ Generated on Wed Sep 9 15:14:06 2015 by
458
458
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
459
459
  0.8.7.6 (ruby-1.9.3).
460
460
  </div>
@@ -178,7 +178,7 @@
178
178
  </div>
179
179
 
180
180
  <div id="footer">
181
- Generated on Wed Sep 9 10:27:08 2015 by
181
+ Generated on Wed Sep 9 15:14:06 2015 by
182
182
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
183
183
  0.8.7.6 (ruby-1.9.3).
184
184
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Sep 9 10:27:08 2015 by
109
+ Generated on Wed Sep 9 15:14:06 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Wed Sep 9 10:27:08 2015 by
117
+ Generated on Wed Sep 9 15:14:06 2015 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.8.7.6 (ruby-1.9.3).
120
120
  </div>
data/doc/UiBibz/Ui.html CHANGED
@@ -110,7 +110,7 @@
110
110
  </div>
111
111
 
112
112
  <div id="footer">
113
- Generated on Wed Sep 9 10:27:08 2015 by
113
+ Generated on Wed Sep 9 15:14:06 2015 by
114
114
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
115
115
  0.8.7.6 (ruby-1.9.3).
116
116
  </div>
@@ -295,7 +295,7 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Wed Sep 9 10:27:08 2015 by
298
+ Generated on Wed Sep 9 15:14:06 2015 by
299
299
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.8.7.6 (ruby-1.9.3).
301
301
  </div>
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
 
121
121
  <div id="footer">
122
- Generated on Wed Sep 9 10:27:08 2015 by
122
+ Generated on Wed Sep 9 15:14:06 2015 by
123
123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
124
  0.8.7.6 (ruby-1.9.3).
125
125
  </div>
@@ -371,7 +371,7 @@ end.render</code></pre>
371
371
  </div>
372
372
 
373
373
  <div id="footer">
374
- Generated on Wed Sep 9 10:27:08 2015 by
374
+ Generated on Wed Sep 9 15:14:06 2015 by
375
375
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
376
376
  0.8.7.6 (ruby-1.9.3).
377
377
  </div>
@@ -360,7 +360,7 @@ arguments in options attribute:</p>
360
360
  </div>
361
361
 
362
362
  <div id="footer">
363
- Generated on Wed Sep 9 10:27:10 2015 by
363
+ Generated on Wed Sep 9 15:14:09 2015 by
364
364
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
365
365
  0.8.7.6 (ruby-1.9.3).
366
366
  </div>
@@ -431,7 +431,7 @@ end</code></pre>
431
431
  </div>
432
432
 
433
433
  <div id="footer">
434
- Generated on Wed Sep 9 10:27:10 2015 by
434
+ Generated on Wed Sep 9 15:14:08 2015 by
435
435
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
436
436
  0.8.7.6 (ruby-1.9.3).
437
437
  </div>
@@ -358,7 +358,7 @@ end.render</code></pre>
358
358
  </div>
359
359
 
360
360
  <div id="footer">
361
- Generated on Wed Sep 9 10:27:11 2015 by
361
+ Generated on Wed Sep 9 15:14:09 2015 by
362
362
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
363
  0.8.7.6 (ruby-1.9.3).
364
364
  </div>
@@ -367,7 +367,7 @@ arguments in options attribute:</p>
367
367
  </div>
368
368
 
369
369
  <div id="footer">
370
- Generated on Wed Sep 9 10:27:09 2015 by
370
+ Generated on Wed Sep 9 15:14:07 2015 by
371
371
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
372
372
  0.8.7.6 (ruby-1.9.3).
373
373
  </div>
@@ -389,7 +389,7 @@ end</code></pre>
389
389
  </div>
390
390
 
391
391
  <div id="footer">
392
- Generated on Wed Sep 9 10:27:10 2015 by
392
+ Generated on Wed Sep 9 15:14:08 2015 by
393
393
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
394
394
  0.8.7.6 (ruby-1.9.3).
395
395
  </div>
@@ -360,7 +360,7 @@ end</code></pre>
360
360
  </div>
361
361
 
362
362
  <div id="footer">
363
- Generated on Wed Sep 9 10:27:09 2015 by
363
+ Generated on Wed Sep 9 15:14:07 2015 by
364
364
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
365
365
  0.8.7.6 (ruby-1.9.3).
366
366
  </div>
@@ -369,7 +369,7 @@ arguments in options attribute:</p>
369
369
  </div>
370
370
 
371
371
  <div id="footer">
372
- Generated on Wed Sep 9 10:27:09 2015 by
372
+ Generated on Wed Sep 9 15:14:07 2015 by
373
373
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
374
374
  0.8.7.6 (ruby-1.9.3).
375
375
  </div>
@@ -391,7 +391,7 @@ end</code></pre>
391
391
  </div>
392
392
 
393
393
  <div id="footer">
394
- Generated on Wed Sep 9 10:27:11 2015 by
394
+ Generated on Wed Sep 9 15:14:09 2015 by
395
395
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
396
396
  0.8.7.6 (ruby-1.9.3).
397
397
  </div>
@@ -361,7 +361,7 @@ arguments in options attribute:</p>
361
361
  </div>
362
362
 
363
363
  <div id="footer">
364
- Generated on Wed Sep 9 10:27:08 2015 by
364
+ Generated on Wed Sep 9 15:14:06 2015 by
365
365
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
366
366
  0.8.7.6 (ruby-1.9.3).
367
367
  </div>
@@ -1076,7 +1076,7 @@ variable 'content' does not exit.</p>
1076
1076
  </div>
1077
1077
 
1078
1078
  <div id="footer">
1079
- Generated on Wed Sep 9 10:27:09 2015 by
1079
+ Generated on Wed Sep 9 15:14:07 2015 by
1080
1080
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1081
1081
  0.8.7.6 (ruby-1.9.3).
1082
1082
  </div>
@@ -651,7 +651,7 @@ end</code></pre>
651
651
  </div>
652
652
 
653
653
  <div id="footer">
654
- Generated on Wed Sep 9 10:27:09 2015 by
654
+ Generated on Wed Sep 9 15:14:07 2015 by
655
655
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
656
656
  0.8.7.6 (ruby-1.9.3).
657
657
  </div>
@@ -292,7 +292,7 @@
292
292
  </div>
293
293
 
294
294
  <div id="footer">
295
- Generated on Wed Sep 9 10:27:11 2015 by
295
+ Generated on Wed Sep 9 15:14:09 2015 by
296
296
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
297
297
  0.8.7.6 (ruby-1.9.3).
298
298
  </div>
@@ -344,7 +344,7 @@ content to add a separator</p>
344
344
  </div>
345
345
 
346
346
  <div id="footer">
347
- Generated on Wed Sep 9 10:27:11 2015 by
347
+ Generated on Wed Sep 9 15:14:09 2015 by
348
348
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
349
349
  0.8.7.6 (ruby-1.9.3).
350
350
  </div>
@@ -364,7 +364,7 @@ arguments in options attribute:</p>
364
364
  </div>
365
365
 
366
366
  <div id="footer">
367
- Generated on Wed Sep 9 10:27:11 2015 by
367
+ Generated on Wed Sep 9 15:14:09 2015 by
368
368
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
369
369
  0.8.7.6 (ruby-1.9.3).
370
370
  </div>
@@ -373,7 +373,7 @@ arguments in options attribute:</p>
373
373
  </div>
374
374
 
375
375
  <div id="footer">
376
- Generated on Wed Sep 9 10:27:08 2015 by
376
+ Generated on Wed Sep 9 15:14:06 2015 by
377
377
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
378
378
  0.8.7.6 (ruby-1.9.3).
379
379
  </div>
@@ -367,7 +367,7 @@ arguments in options attribute:</p>
367
367
  </div>
368
368
 
369
369
  <div id="footer">
370
- Generated on Wed Sep 9 10:27:09 2015 by
370
+ Generated on Wed Sep 9 15:14:07 2015 by
371
371
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
372
372
  0.8.7.6 (ruby-1.9.3).
373
373
  </div>
@@ -366,7 +366,7 @@ arguments in options attribute:</p>
366
366
  </div>
367
367
 
368
368
  <div id="footer">
369
- Generated on Wed Sep 9 10:27:08 2015 by
369
+ Generated on Wed Sep 9 15:14:06 2015 by
370
370
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
371
371
  0.8.7.6 (ruby-1.9.3).
372
372
  </div>
@@ -516,7 +516,7 @@ arguments in options attribute:</p>
516
516
  </div>
517
517
 
518
518
  <div id="footer">
519
- Generated on Wed Sep 9 10:27:09 2015 by
519
+ Generated on Wed Sep 9 15:14:07 2015 by
520
520
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
521
521
  0.8.7.6 (ruby-1.9.3).
522
522
  </div>
@@ -463,7 +463,7 @@ end</code></pre>
463
463
  </div>
464
464
 
465
465
  <div id="footer">
466
- Generated on Wed Sep 9 10:27:09 2015 by
466
+ Generated on Wed Sep 9 15:14:07 2015 by
467
467
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
468
468
  0.8.7.6 (ruby-1.9.3).
469
469
  </div>
@@ -504,7 +504,7 @@ end</code></pre>
504
504
  </div>
505
505
 
506
506
  <div id="footer">
507
- Generated on Wed Sep 9 10:27:08 2015 by
507
+ Generated on Wed Sep 9 15:14:06 2015 by
508
508
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
509
509
  0.8.7.6 (ruby-1.9.3).
510
510
  </div>
@@ -380,7 +380,7 @@ end</code></pre>
380
380
  </div>
381
381
 
382
382
  <div id="footer">
383
- Generated on Wed Sep 9 10:27:11 2015 by
383
+ Generated on Wed Sep 9 15:14:09 2015 by
384
384
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
385
385
  0.8.7.6 (ruby-1.9.3).
386
386
  </div>
@@ -353,7 +353,7 @@ end.render</code></pre>
353
353
  </div>
354
354
 
355
355
  <div id="footer">
356
- Generated on Wed Sep 9 10:27:10 2015 by
356
+ Generated on Wed Sep 9 15:14:08 2015 by
357
357
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
358
358
  0.8.7.6 (ruby-1.9.3).
359
359
  </div>
@@ -635,7 +635,7 @@ end</code></pre>
635
635
  </div>
636
636
 
637
637
  <div id="footer">
638
- Generated on Wed Sep 9 10:27:09 2015 by
638
+ Generated on Wed Sep 9 15:14:07 2015 by
639
639
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
640
640
  0.8.7.6 (ruby-1.9.3).
641
641
  </div>
@@ -352,7 +352,7 @@ arguments in options attribute:</p>
352
352
  </div>
353
353
 
354
354
  <div id="footer">
355
- Generated on Wed Sep 9 10:27:10 2015 by
355
+ Generated on Wed Sep 9 15:14:08 2015 by
356
356
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
357
357
  0.8.7.6 (ruby-1.9.3).
358
358
  </div>
@@ -292,7 +292,7 @@ end</code></pre>
292
292
  </div>
293
293
 
294
294
  <div id="footer">
295
- Generated on Wed Sep 9 10:27:10 2015 by
295
+ Generated on Wed Sep 9 15:14:08 2015 by
296
296
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
297
297
  0.8.7.6 (ruby-1.9.3).
298
298
  </div>
@@ -345,7 +345,7 @@ end.render</code></pre>
345
345
  </div>
346
346
 
347
347
  <div id="footer">
348
- Generated on Wed Sep 9 10:27:10 2015 by
348
+ Generated on Wed Sep 9 15:14:08 2015 by
349
349
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
350
350
  0.8.7.6 (ruby-1.9.3).
351
351
  </div>
@@ -598,7 +598,7 @@ arguments in options attribute:</p>
598
598
  </div>
599
599
 
600
600
  <div id="footer">
601
- Generated on Wed Sep 9 10:27:08 2015 by
601
+ Generated on Wed Sep 9 15:14:06 2015 by
602
602
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
603
603
  0.8.7.6 (ruby-1.9.3).
604
604
  </div>
@@ -450,7 +450,7 @@ end.render</code></pre>
450
450
  </div>
451
451
 
452
452
  <div id="footer">
453
- Generated on Wed Sep 9 10:27:10 2015 by
453
+ Generated on Wed Sep 9 15:14:08 2015 by
454
454
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
455
455
  0.8.7.6 (ruby-1.9.3).
456
456
  </div>
@@ -339,7 +339,7 @@
339
339
  </div>
340
340
 
341
341
  <div id="footer">
342
- Generated on Wed Sep 9 10:27:08 2015 by
342
+ Generated on Wed Sep 9 15:14:06 2015 by
343
343
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
344
344
  0.8.7.6 (ruby-1.9.3).
345
345
  </div>
@@ -358,7 +358,7 @@ arguments in options attribute:</p>
358
358
  </div>
359
359
 
360
360
  <div id="footer">
361
- Generated on Wed Sep 9 10:27:08 2015 by
361
+ Generated on Wed Sep 9 15:14:06 2015 by
362
362
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
363
  0.8.7.6 (ruby-1.9.3).
364
364
  </div>
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
 
121
121
  <div id="footer">
122
- Generated on Wed Sep 9 10:27:08 2015 by
122
+ Generated on Wed Sep 9 15:14:06 2015 by
123
123
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
124
  0.8.7.6 (ruby-1.9.3).
125
125
  </div>
@@ -469,7 +469,7 @@
469
469
  </div>
470
470
 
471
471
  <div id="footer">
472
- Generated on Wed Sep 9 10:27:10 2015 by
472
+ Generated on Wed Sep 9 15:14:08 2015 by
473
473
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
474
474
  0.8.7.6 (ruby-1.9.3).
475
475
  </div>
@@ -593,7 +593,7 @@
593
593
  </div>
594
594
 
595
595
  <div id="footer">
596
- Generated on Wed Sep 9 10:27:10 2015 by
596
+ Generated on Wed Sep 9 15:14:08 2015 by
597
597
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
598
598
  0.8.7.6 (ruby-1.9.3).
599
599
  </div>
@@ -1168,7 +1168,7 @@
1168
1168
  </div>
1169
1169
 
1170
1170
  <div id="footer">
1171
- Generated on Wed Sep 9 10:27:10 2015 by
1171
+ Generated on Wed Sep 9 15:14:08 2015 by
1172
1172
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1173
1173
  0.8.7.6 (ruby-1.9.3).
1174
1174
  </div>
@@ -329,7 +329,7 @@
329
329
  </div>
330
330
 
331
331
  <div id="footer">
332
- Generated on Wed Sep 9 10:27:10 2015 by
332
+ Generated on Wed Sep 9 15:14:08 2015 by
333
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
334
  0.8.7.6 (ruby-1.9.3).
335
335
  </div>
@@ -474,7 +474,7 @@ end</code></pre>
474
474
  </div>
475
475
 
476
476
  <div id="footer">
477
- Generated on Wed Sep 9 10:27:08 2015 by
477
+ Generated on Wed Sep 9 15:14:06 2015 by
478
478
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
479
479
  0.8.7.6 (ruby-1.9.3).
480
480
  </div>
@@ -372,7 +372,7 @@
372
372
  </div>
373
373
 
374
374
  <div id="footer">
375
- Generated on Wed Sep 9 10:27:10 2015 by
375
+ Generated on Wed Sep 9 15:14:08 2015 by
376
376
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
377
377
  0.8.7.6 (ruby-1.9.3).
378
378
  </div>
@@ -367,7 +367,7 @@
367
367
  </div>
368
368
 
369
369
  <div id="footer">
370
- Generated on Wed Sep 9 10:27:10 2015 by
370
+ Generated on Wed Sep 9 15:14:08 2015 by
371
371
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
372
372
  0.8.7.6 (ruby-1.9.3).
373
373
  </div>
@@ -291,7 +291,7 @@
291
291
  </div>
292
292
 
293
293
  <div id="footer">
294
- Generated on Wed Sep 9 10:27:10 2015 by
294
+ Generated on Wed Sep 9 15:14:08 2015 by
295
295
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
296
296
  0.8.7.6 (ruby-1.9.3).
297
297
  </div>
@@ -1063,7 +1063,7 @@
1063
1063
  </div>
1064
1064
 
1065
1065
  <div id="footer">
1066
- Generated on Wed Sep 9 10:27:09 2015 by
1066
+ Generated on Wed Sep 9 15:14:07 2015 by
1067
1067
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1068
1068
  0.8.7.6 (ruby-1.9.3).
1069
1069
  </div>
@@ -683,7 +683,7 @@ end.render</code></pre>
683
683
  </div>
684
684
 
685
685
  <div id="footer">
686
- Generated on Wed Sep 9 10:27:09 2015 by
686
+ Generated on Wed Sep 9 15:14:07 2015 by
687
687
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
688
688
  0.8.7.6 (ruby-1.9.3).
689
689
  </div>
@@ -329,7 +329,7 @@ gem</p>
329
329
  </div>
330
330
 
331
331
  <div id="footer">
332
- Generated on Wed Sep 9 10:27:09 2015 by
332
+ Generated on Wed Sep 9 15:14:08 2015 by
333
333
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
334
  0.8.7.6 (ruby-1.9.3).
335
335
  </div>
@@ -337,7 +337,7 @@ WillPaginate gem</p>
337
337
  </div>
338
338
 
339
339
  <div id="footer">
340
- Generated on Wed Sep 9 10:27:11 2015 by
340
+ Generated on Wed Sep 9 15:14:09 2015 by
341
341
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
342
342
  0.8.7.6 (ruby-1.9.3).
343
343
  </div>
@@ -663,7 +663,7 @@ end.render</code></pre>
663
663
  </div>
664
664
 
665
665
  <div id="footer">
666
- Generated on Wed Sep 9 10:27:09 2015 by
666
+ Generated on Wed Sep 9 15:14:07 2015 by
667
667
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
668
668
  0.8.7.6 (ruby-1.9.3).
669
669
  </div>
@@ -295,7 +295,7 @@
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Wed Sep 9 10:27:10 2015 by
298
+ Generated on Wed Sep 9 15:14:08 2015 by
299
299
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.8.7.6 (ruby-1.9.3).
301
301
  </div>
@@ -106,7 +106,7 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Wed Sep 9 10:27:08 2015 by
109
+ Generated on Wed Sep 9 15:14:06 2015 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
111
  0.8.7.6 (ruby-1.9.3).
112
112
  </div>
@@ -253,7 +253,7 @@
253
253
  </div>
254
254
 
255
255
  <div id="footer">
256
- Generated on Wed Sep 9 10:27:09 2015 by
256
+ Generated on Wed Sep 9 15:14:07 2015 by
257
257
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
258
258
  0.8.7.6 (ruby-1.9.3).
259
259
  </div>
data/doc/_index.html CHANGED
@@ -669,7 +669,7 @@
669
669
  </div>
670
670
 
671
671
  <div id="footer">
672
- Generated on Wed Sep 9 10:27:07 2015 by
672
+ Generated on Wed Sep 9 15:14:05 2015 by
673
673
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
674
674
  0.8.7.6 (ruby-1.9.3).
675
675
  </div>
data/doc/file.README.html CHANGED
@@ -1120,7 +1120,7 @@ comme ci-dessous.</p>
1120
1120
  </div></div>
1121
1121
 
1122
1122
  <div id="footer">
1123
- Generated on Wed Sep 9 10:27:08 2015 by
1123
+ Generated on Wed Sep 9 15:14:05 2015 by
1124
1124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1125
1125
  0.8.7.6 (ruby-1.9.3).
1126
1126
  </div>
data/doc/index.html CHANGED
@@ -1120,7 +1120,7 @@ comme ci-dessous.</p>
1120
1120
  </div></div>
1121
1121
 
1122
1122
  <div id="footer">
1123
- Generated on Wed Sep 9 10:27:08 2015 by
1123
+ Generated on Wed Sep 9 15:14:05 2015 by
1124
1124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1125
1125
  0.8.7.6 (ruby-1.9.3).
1126
1126
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Wed Sep 9 10:27:08 2015 by
106
+ Generated on Wed Sep 9 15:14:06 2015 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.7.6 (ruby-1.9.3).
109
109
  </div>
@@ -56,14 +56,24 @@ module UiBibz::Concerns::Models::Searchable
56
56
  # Main query with argument or not
57
57
  sql = search_by_query sql unless @params[:search].blank?
58
58
 
59
- # Select Count or Not
60
- if column_args[:count]
61
- sq = "SELECT * FROM (#{ sql.group(table_name + '.id').to_sql }) countable ORDER BY countable.count #{ @params[:direction] || asc }"
62
- self.paginate_by_sql(sq, :page => @params[:page], per_page: @session[:per_page])
59
+ generate_sql sql, column_args
60
+ end
61
+
62
+ def self.generate_sql sql, column_args
63
+ column_args[:count].nil? ? generate_default_sql(sql) : generate_count_sql(sql)
64
+ end
65
+
66
+ def self.generate_default_sql sql
67
+ if is_sorting?
68
+ sql.paginate(:page => @params[:page], per_page: @session[:per_page])
63
69
  else
64
70
  sql.reorder(order_sql).paginate(:page => @params[:page], per_page: @session[:per_page])
65
- end
71
+ end
72
+ end
66
73
 
74
+ def self.generate_count_sql sql
75
+ sq = "SELECT * FROM (#{ sql.group(table_name + '.id').to_sql }) countable ORDER BY countable.count #{ @params[:direction] || asc }"
76
+ self.paginate_by_sql(sq, :page => @params[:page], per_page: @session[:per_page])
67
77
  end
68
78
 
69
79
  def self.generate_select_count_sort_query sql, column_args
@@ -82,6 +92,10 @@ module UiBibz::Concerns::Models::Searchable
82
92
  column_args
83
93
  end
84
94
 
95
+ def self.is_sorting?
96
+ @params[:sort].nil? || @params[:direction].nil?
97
+ end
98
+
85
99
  def self.search_by_query sql
86
100
  sql_query = []
87
101
  sql_attributes = {}
@@ -100,7 +114,7 @@ module UiBibz::Concerns::Models::Searchable
100
114
  end
101
115
 
102
116
  def self.order_sql
103
- @params[:sort].nil? || @params[:direction].nil? ? "#{ self.table_name }.id asc" : "#{ @params[:sort]} #{ @params[:direction] }"
117
+ self.is_sorting? ? "#{ self.table_name }.id asc" : "#{ @params[:sort]} #{ @params[:direction] }"
104
118
  end
105
119
 
106
120
  def self.search_sort_paginate
@@ -1,3 +1,3 @@
1
1
  module UiBibz
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ui_bibz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thooams