subroutine 4.1.0 → 4.1.2
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/lib/subroutine/fields/configuration.rb +1 -2
- data/lib/subroutine/version.rb +1 -1
- data/lib/subroutine.rb +8 -0
- 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: 15a66f7e3077a9ab4f4e18ea83b392d2e5f75df8e66800ae5490c3c21043c135
|
4
|
+
data.tar.gz: d700305226f76f5a4cb06b68720c22a5ba9b6d524a1dedce247f567d07c3d2f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4aa17ca9430260a3071105938f58d8ecf1100ce130907529539fe26723e80d80d50a6077fca1902175439bde526db2a1ce65c2041aa35a24f383c147e6ff12fa
|
7
|
+
data.tar.gz: 2e6b8034633a1a114e21c23d723e211b7c6e2a80c44341eaaafb4ff03e4e2bb78cb25a49126664206a2bd2951a8e602d95cb0036ff264b30cd85f15725fa51bb
|
@@ -5,7 +5,6 @@ module Subroutine
|
|
5
5
|
class Configuration < ::SimpleDelegator
|
6
6
|
|
7
7
|
PROTECTED_GROUP_IDENTIFIERS = %i[all original default].freeze
|
8
|
-
INHERITABLE_OPTIONS = %i[mass_assignable field_reader field_writer groups aka].freeze
|
9
8
|
NO_GROUPS = [].freeze
|
10
9
|
|
11
10
|
def self.from(field_name, options)
|
@@ -61,7 +60,7 @@ module Subroutine
|
|
61
60
|
end
|
62
61
|
|
63
62
|
def inheritable_options
|
64
|
-
config.slice(*
|
63
|
+
config.slice(*Subroutine.inheritable_field_options)
|
65
64
|
end
|
66
65
|
|
67
66
|
def mass_assignable?
|
data/lib/subroutine/version.rb
CHANGED
data/lib/subroutine.rb
CHANGED
@@ -25,4 +25,12 @@ module Subroutine
|
|
25
25
|
false
|
26
26
|
end
|
27
27
|
|
28
|
+
def self.inheritable_field_options=(opts)
|
29
|
+
@inheritable_field_options = opts.map(&:to_sym)
|
30
|
+
end
|
31
|
+
|
32
|
+
def self.inheritable_field_options
|
33
|
+
@inheritable_field_options ||= %i[mass_assignable field_reader field_writer groups aka]
|
34
|
+
end
|
35
|
+
|
28
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subroutine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Nelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|