completion-kit 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 831c799302277cd5d63621d0eda00941a0a608909f257f77c38cdd5522de36f0
4
- data.tar.gz: 2d94dbc1f73e0f92eafd095d137a8021b77fb773f1fb70e35b44ede3db996f33
3
+ metadata.gz: 4c34f74519434a51e3ad3d4d8a7e2fda2263a079747d5047218ef69430f57966
4
+ data.tar.gz: e6d6ddf03c6ba44f09cf4e2b1f75f97b6a1182f55326c006db18a863fd04b1c9
5
5
  SHA512:
6
- metadata.gz: '0752419e8f5420796fc1f8a0b110417cf011fcc4348b3e4dc5f3bfc0954b0d577d6b128ccbb70e2fc2f3e87902441d358be96dc5cd9fe10f6fc6b3c3876563ef'
7
- data.tar.gz: 1dd4e95a82ed0974cf6f5f5d8de7abea26a7d40737338a733e2f15675c8da40c4c708506a55a3cc3441bc5814c1d4bb5045cc271dcb0541d2889009bb157df75
6
+ metadata.gz: 3a44106f41afe54ca68aec5386df1c198309e4cd25866fbd76bc04a3af260db9d139c408d161a89bd7b262a18847c2153eaa1b5f4f0682ec0c2a4067eafac312
7
+ data.tar.gz: 79e9107c563b8a499357c09c9f651cceea68a6261f4060ee539792161ef1529f13d920133c6215d6822bb875a6ce34d2c3e1ccd15e80e2fa037a9c93f5a4a756
@@ -270,7 +270,7 @@ module CompletionKit
270
270
  # The engine's url_helpers won't read them out of the nested recall hash to
271
271
  # satisfy a required segment — they have to arrive as explicit kwargs.
272
272
  def ck_engine_path_options
273
- (url_options[:_recall] || {}).except(:controller, :action)
273
+ (url_options[:_recall] || {}).except(:controller, :action, :id, :format)
274
274
  end
275
275
 
276
276
  def ck_format_maybe_json(text)
@@ -8,7 +8,7 @@
8
8
  <h1 class="ck-title"><%= @dataset.name %></h1>
9
9
  </div>
10
10
  <div class="ck-actions">
11
- <%= link_to "Download CSV", dataset_path(@dataset, format: :csv), class: ck_button_classes(:light, variant: :outline) %>
11
+ <%= link_to "Download CSV", dataset_path(@dataset, format: :csv, **ck_engine_path_options), class: ck_button_classes(:light, variant: :outline) %>
12
12
  <%= link_to "Edit", edit_dataset_path(@dataset), class: ck_button_classes(:light, variant: :outline) %>
13
13
  </div>
14
14
  </section>
@@ -1,3 +1,3 @@
1
1
  module CompletionKit
2
- VERSION = "0.25.1"
2
+ VERSION = "0.25.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: completion-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.1
4
+ version: 0.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damien Bastin