administrate_ransack 0.1.12 → 0.1.13
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30740fba6ba03d609c74a19fcce57700128abb8055735eb6e341ff445881b076
|
4
|
+
data.tar.gz: 1b040d838cb34725d8a654a6cf7376132e81e34a0a48107501ad175a9da06518
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 157edfd6f4bb409bdac2394f815246e6e3b940bc5709c7d2a1cea3270c5ee71f8ae50f0a6d982765a3465473af778dd4034d7bc3a9ba40580269ae821c522a9c
|
7
|
+
data.tar.gz: 8af8b11b461b4d23db7acbed9663ed21c65a3e18f300cc81ecc85269e332fe63cb7fc98a8435a4732e19fb7842d027964c537b646599830a428d765208821ce4
|
@@ -17,8 +17,10 @@
|
|
17
17
|
if local_assigns.has_key?(:search_path)
|
18
18
|
form_path = @ransack_results
|
19
19
|
form_options[:url] = search_path
|
20
|
+
clear_filters_path = search_path
|
20
21
|
else
|
21
22
|
form_path = [:admin, @ransack_results]
|
23
|
+
clear_filters_path = url_for(url_for([:admin, @ransack_results.klass]))
|
22
24
|
end
|
23
25
|
%>
|
24
26
|
<%= search_form_for form_path, form_options do |f| %>
|
@@ -81,6 +83,6 @@
|
|
81
83
|
|
82
84
|
<div class="filters-buttons">
|
83
85
|
<%= f.submit %>
|
84
|
-
<%= link_to t('administrate_ransack.filters.clear_filters'),
|
86
|
+
<%= link_to t('administrate_ransack.filters.clear_filters'), clear_filters_path, class: 'btn-clear-filters' %>
|
85
87
|
</div>
|
86
88
|
<% end %>
|