azahara_schema 0.1.18 → 0.1.19
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 +4 -4
- data/config/locales/cs.yml +1 -1
- data/lib/azahara_schema/engine.rb +3 -3
- data/lib/azahara_schema/schema.rb +8 -1
- data/lib/azahara_schema/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25490d22ef57ea46458c8dc649737d3d9803125ef41065ba8391f64172ac0529
|
4
|
+
data.tar.gz: a7db9ef4236e8503d0e66a7b26a37c10726ba7d96eebed2384630a0877ead370
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50aefe689dec3b383ac493e81034586c6e65c4ebcb026f7d7b7bb9de326441af84a4603b041d71b6f10346b50c32d7bfb0957f7ff09a939430ecb41726270c9e
|
7
|
+
data.tar.gz: 378eb219b1030e5dc4cc812cd7247c37d88df0ceb697ce04008d0c27e23d6c64d1cbaeaabe31599542173e0e2ec232f86154a9f18985e14b5cf8a89bfcc6ce78
|
data/config/locales/cs.yml
CHANGED
@@ -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
|
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
|
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.
|
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:
|
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.
|
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
|