attribeauty 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/attribeauty/params.rb +1 -1
- data/lib/attribeauty/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: 374ded7327851e372722c4b501033f42dff9d55d9c0f2c2c1f76b897a12684dd
|
4
|
+
data.tar.gz: 7f3ad264240f23741939149d3d6583ddcf2087fa5c6482665b0e31992177b108
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5905f649b65f1b9056459a9da1c499130c2aac5e4f5aa62185d1c3d6b610832ed89317930b0036b2f243f653ce867d9823b382e9880124e526012e1271087e73
|
7
|
+
data.tar.gz: 6d42d7c5cd9cfec6313d832892289ddc87b75dbb07f2d636addb5b7a2a64e3579ede93ba7080b07f5dbdacbccc489dd31e66df4a5c186cfcb8c00aa8302b960b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -133,12 +133,12 @@ class MyController
|
|
133
133
|
Attribeauty::Params.with(request.params)
|
134
134
|
end
|
135
135
|
|
136
|
-
# using
|
136
|
+
# using root will exclude the value and yield:
|
137
137
|
# { title: "woo", email: { address: "hmm@yep.com" } }
|
138
138
|
#
|
139
139
|
def update_params
|
140
140
|
params_filter.accept do
|
141
|
-
|
141
|
+
root :user do
|
142
142
|
attribute :title, :string, required: true
|
143
143
|
attribute :email do
|
144
144
|
attribute :address, :string, exclude_if: [:empty?, :nil?]
|
@@ -177,7 +177,7 @@ class MyController
|
|
177
177
|
#
|
178
178
|
def update_params
|
179
179
|
params_filter.accept! do
|
180
|
-
|
180
|
+
root :user do
|
181
181
|
attribute :title, :string, exclude_if: :nil?, required: true
|
182
182
|
attribute :email do
|
183
183
|
attribute :address, :string
|
@@ -215,7 +215,7 @@ class MyController
|
|
215
215
|
#
|
216
216
|
def update_params
|
217
217
|
params_filter.accept exclude_if: :nil?, required: true do
|
218
|
-
|
218
|
+
root :user do
|
219
219
|
attribute :title, :string,
|
220
220
|
attribute :email do
|
221
221
|
attribute :address, :string
|
data/lib/attribeauty/params.rb
CHANGED
data/lib/attribeauty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attribeauty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: There are so many of these, I just needed this one.
|
14
14
|
email:
|