dynamic_scaffold 0.8.3 → 0.8.4
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/README.md +3 -1
- data/lib/dynamic_scaffold/controller_utilities.rb +3 -3
- data/lib/dynamic_scaffold/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d6358de3df9aefc4093b2186dbe114254be6ff7fcf4322592683f59eaf1fe0c
|
|
4
|
+
data.tar.gz: 89c443f0f4d2aa1fe4eb6630cc78c66ebca19eb79e71f98823b4fef6f815ab1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2fdb85f97b30d602b87638ae40acab865ba22ac482ca96704218fad0a30d2e76865a62a4cdfc6535cbfae0876ae0d8aefc9f96207119bbe851f3e8618ec91f4
|
|
7
|
+
data.tar.gz: ac8adf3e38165ea29a024326c5c0cbe0e70257d6b1c1bda0faf837ff54547383d1f985e862d78a28462c8e778cd3f5373bd73924e9987f77032ce29c7861d5aa
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@ The Scaffold system which dynamically generates CRUD and sort functions.
|
|
|
6
6
|
* This is generate the pages using same views dynamically.
|
|
7
7
|
* Support the responsive design and touch UI.
|
|
8
8
|
* Support sort and pagination.
|
|
9
|
+
* Support image upload with preview.
|
|
10
|
+
* Support image crop.
|
|
9
11
|
* This has the views with the Twitter Bootstrap. Support bootstrap3/4.
|
|
10
12
|
* Customizable and flexible.
|
|
11
13
|
|
|
@@ -546,4 +548,4 @@ class ShopController < ApplicationController
|
|
|
546
548
|
Please support both Bootstrap 3/4. You can change CSS to Bootstrap3 by registering `bootstrap=3` in cookie in the sample page.
|
|
547
549
|
|
|
548
550
|
## License
|
|
549
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
551
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
@@ -42,9 +42,9 @@ module DynamicScaffold
|
|
|
42
42
|
# Get paramters for update record.
|
|
43
43
|
def update_values # rubocop:disable Metrics/AbcSize
|
|
44
44
|
# set the parameters of carrierwave_image at the end for validates.
|
|
45
|
-
permitting = dynamic_scaffold.form.items.map{|f| f.strong_parameter unless f.type?(:carrierwave_image)}.compact
|
|
45
|
+
permitting = dynamic_scaffold.form.items.map {|f| f.strong_parameter unless f.type?(:carrierwave_image) }.compact
|
|
46
46
|
permitting.concat(dynamic_scaffold.form.permit_params)
|
|
47
|
-
permitting.concat(dynamic_scaffold.form.items.map{|f| f.strong_parameter if f.type?(:carrierwave_image)}.compact)
|
|
47
|
+
permitting.concat(dynamic_scaffold.form.items.map {|f| f.strong_parameter if f.type?(:carrierwave_image) }.compact)
|
|
48
48
|
permitting.flatten!
|
|
49
49
|
|
|
50
50
|
values = params
|
|
@@ -125,7 +125,7 @@ module DynamicScaffold
|
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
def request_queries(*except)
|
|
128
|
-
request.query_parameters.to_hash.delete_if {|k, _v| except.select(&:present?).include?(k
|
|
128
|
+
request.query_parameters.to_hash.symbolize_keys.delete_if {|k, _v| except.select(&:present?).include?(k) }
|
|
129
129
|
end
|
|
130
130
|
|
|
131
131
|
def check_max_count!
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynamic_scaffold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Masamoto Miyata
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: classnames-rails-view
|