snaptable 2.0.2 → 2.0.4

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: 1e381b7063f27289f22184691e0c347f99b1adab
4
- data.tar.gz: 97d85011de8277ae749894be70b0a9ebf121d949
3
+ metadata.gz: 1f5957fece386147993ccc0cf9bd674bd5ce4c27
4
+ data.tar.gz: 64b6ff524003408f620b9e369debb289bcae2c99
5
5
  SHA512:
6
- metadata.gz: ee3c5e96830b100a7890bb7b940fe789af45b4899916ece724bf1905d3b942d457a67ee798ef77d08a4d4a163cc18013bcf2eb787c3b2cdad84079392aab9d04
7
- data.tar.gz: f22d69e75a039068d3f83f8db7b0b74d909abce4402c41a866fbe1731737a04ad5f3fce972658dcf6227e6daeeacf1159db46f176f62b4231486861c642702aa
6
+ metadata.gz: 73ede377d2a08ba3f0357918e6bc7d9930ebd6dd90de8d99ca751b8c67499c0ccdb86af7748ea77747aa1f2a308f16c069545d29a9506db30f87762164fb0f92
7
+ data.tar.gz: '09894bcb1c16b9f63a2ceb255d2c27db842d93de36685074347b1a54ab2a592a1017ac986215d90198cc946f4021f4135f39ad369caca05317b6c0a5d95320f4'
@@ -1,7 +1,8 @@
1
1
  <div class="search">
2
2
  <p><%= t("table.search.title") %></p>
3
3
  <%= form_tag nil, method: :get, remote: true do %>
4
+ <%= hidden_field_tag :table, presenter.table_name %>
4
5
  <%= search_field_tag :query, params[:query] %>
5
6
  <%= submit_tag t("table.search.submit") %>
6
7
  <% end %>
7
- </div>
8
+ </div>
@@ -1,5 +1,5 @@
1
1
  <div class="snaptable <%= presenter.table_name %>">
2
- <%= render 'snaptable/search_field' if presenter.options[:search] == true %>
2
+ <%= render 'snaptable/search_field', presenter: presenter if presenter.options[:search] == true %>
3
3
 
4
4
  <div class="table_buttons">
5
5
  <%= render presenter.instance_variable_get(:@buttons) unless presenter.options[:buttons] == false %>
@@ -1,3 +1,3 @@
1
1
  module Snaptable
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.5.1
133
+ rubygems_version: 2.6.10
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A gem that generate HTML tables from your models in order to display them