rails-param-validation 0.4.10 → 0.4.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03afb2f7dae8d957fa9081d67451746f907a34e3a0cf19f02327c6e0d53e1a2c
|
4
|
+
data.tar.gz: 7ee1ce7f02547ce4580ade8081c9347824c7bc2ea63dc956e449a0a777291700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8adb46a6ff77b010065fc54f9b28439aba097db32306e24ddc62e433319659edc12492f13efe514aee68e7640f7546385727ec93c4ece9549375ffe9ea9e9a08
|
7
|
+
data.tar.gz: aaebdb605611682da1a7c90273b3e7433ffb53cf2524eb29d56277bc03f5f6914d815263223c7efbc6715858cddc86c7bfd460cec99199c96013d2cfde69fb9f
|
@@ -38,7 +38,11 @@ module RailsParamValidation
|
|
38
38
|
end
|
39
39
|
|
40
40
|
module ClassMethods
|
41
|
-
def base_path(path)
|
41
|
+
def base_path(path, include_module_name: true)
|
42
|
+
if include_module_name
|
43
|
+
path = "#{module_parent_name.underscore}/#{path}".gsub("//", "/")
|
44
|
+
end
|
45
|
+
|
42
46
|
@base_paths ||= {}
|
43
47
|
@base_paths[self.name] = path
|
44
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-param-validation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oskar Kirmis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Declarative parameter definition and validation for Rails
|
14
14
|
email:
|
@@ -78,7 +78,7 @@ metadata:
|
|
78
78
|
homepage_uri: https://okirmis.github.io/rails-param-validation
|
79
79
|
source_code_uri: https://github.com/okirmis/rails-param-validation
|
80
80
|
changelog_uri: https://github.com/okirmis/rails-param-validation
|
81
|
-
post_install_message:
|
81
|
+
post_install_message:
|
82
82
|
rdoc_options: []
|
83
83
|
require_paths:
|
84
84
|
- lib
|
@@ -93,8 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
|
-
rubygems_version: 3.3.
|
97
|
-
signing_key:
|
96
|
+
rubygems_version: 3.3.7
|
97
|
+
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Declarative parameter definition and validation for Rails
|
100
100
|
test_files: []
|