azahara_schema 0.1.18 → 0.1.19

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: 9beeb63dd4ca7883c3e155a37077053266d469b4a5734b0976541bf0d8f9749d
4
- data.tar.gz: d573a0f87cf9e899bb3336fa6979797c3908e6f2f3c4190d3b123b66905d153e
3
+ metadata.gz: 25490d22ef57ea46458c8dc649737d3d9803125ef41065ba8391f64172ac0529
4
+ data.tar.gz: a7db9ef4236e8503d0e66a7b26a37c10726ba7d96eebed2384630a0877ead370
5
5
  SHA512:
6
- metadata.gz: 876a1ecb9b8363d7594f9570f93a14c0e8d1189e525ab0ebd7d3787322bf2d355f5fc6792feb45eb4c4c020a22e42dcb8756903c8371ed57c6a30cf34e722292
7
- data.tar.gz: 9677fd3534f972437328517a1aafe22c56847d2f4d7b7e57e28a904a7a3a272b9bf3bb5f3b16c14b69ab537361100917771b87e0c52b62d56ca415fb786a0290
6
+ metadata.gz: 50aefe689dec3b383ac493e81034586c6e65c4ebcb026f7d7b7bb9de326441af84a4603b041d71b6f10346b50c32d7bfb0957f7ff09a939430ecb41726270c9e
7
+ data.tar.gz: 378eb219b1030e5dc4cc812cd7247c37d88df0ceb697ce04008d0c27e23d6c64d1cbaeaabe31599542173e0e2ec232f86154a9f18985e14b5cf8a89bfcc6ce78
@@ -3,4 +3,4 @@ cs:
3
3
  label_filters: Filtry
4
4
  label_advance_filters: Rozšířené
5
5
  label_use_setting: Zobrazit
6
- unfilled_attribute_message: Nevyplněno
6
+ label_unfilled: Nevyplněno
@@ -18,10 +18,10 @@ module AzaharaSchema
18
18
  end
19
19
  end
20
20
 
21
+ ActiveSupport.on_load(:action_controller) do
22
+ helper AzaharaSchema::ApplicationHelper
23
+ end
21
24
  end
22
25
 
23
- config.to_prepare do
24
- ::ApplicationController.helper(AzaharaSchema::ApplicationHelper)
25
- end
26
26
  end
27
27
  end
@@ -274,7 +274,14 @@ module AzaharaSchema
274
274
  def from_params(params)
275
275
  if params[:f]
276
276
  filter_params = params[:f].permit(available_filters.keys + [available_filters.keys.inject({}){|o,name| o[name] = []; o }]).to_h
277
- filter_params.each{|name, filter_value| filter_value.is_a?(Array) ? add_filter(name, '=', filter_value) : add_short_filter(name, filter_value) }
277
+ filter_params.each do |name, filter_value|
278
+ next if filter_value.blank?
279
+ if filter_value.is_a?(Array)
280
+ add_filter(name, '=', filter_value)
281
+ else
282
+ add_short_filter(name, filter_value)
283
+ end
284
+ end
278
285
  end
279
286
  if params[:c].is_a?(Array)
280
287
  self.column_names = params[:c].to_a
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-19 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.7.3
105
+ rubygems_version: 2.7.4
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Gem to support developement of rails application with schema over an entity