File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def self.run_eval!
120
120
extensions . freeze
121
121
options . freeze
122
122
schema . freeze
123
- schema . each do |_ , f |
123
+ schema . each_value do |f |
124
124
f . options &.freeze
125
125
f . freeze
126
126
end
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ module V2
5
5
# Methods for defining Blueprint fields and views
6
6
module DSL
7
7
#
8
- # Define a new child view, which is a subclass of self. If a view with this name already exists, the definition will be appended.
8
+ # Define a new child view, which is a subclass of self. If a view with this name already exists, the definition will be
9
+ # appended.
9
10
#
10
11
# @param name [Symbol] Name of the view
11
12
# @param fields [Boolean] Inherit fields from parents (default true)
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ def reset
85
85
86
86
private
87
87
88
- # rubocop:disable Metrics/CyclomaticComplexity
88
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
89
89
def build_view ( name )
90
90
defs = @pending [ name ]
91
91
inherit_fields = defs . reduce ( true ) { |acc , d | d . fields . nil? ? acc : d . fields }
@@ -101,7 +101,7 @@ def build_view(name)
101
101
defs . each { |d | view . class_eval ( &d . definition ) if d . definition }
102
102
view
103
103
end
104
- # rubocop:enable Metrics/CyclomaticComplexity
104
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
105
105
end
106
106
end
107
107
end
You can’t perform that action at this time.
0 commit comments