Skip to content

Commit 02009df

Browse files
committed
Make Rubocop happy
Signed-off-by: Jordan Hollinger <[email protected]>
1 parent d322288 commit 02009df

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/blueprinter/v2/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def self.run_eval!
120120
extensions.freeze
121121
options.freeze
122122
schema.freeze
123-
schema.each do |_, f|
123+
schema.each_value do |f|
124124
f.options&.freeze
125125
f.freeze
126126
end

lib/blueprinter/v2/dsl.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ module V2
55
# Methods for defining Blueprint fields and views
66
module DSL
77
#
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.
910
#
1011
# @param name [Symbol] Name of the view
1112
# @param fields [Boolean] Inherit fields from parents (default true)

lib/blueprinter/v2/view_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def reset
8585

8686
private
8787

88-
# rubocop:disable Metrics/CyclomaticComplexity
88+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
8989
def build_view(name)
9090
defs = @pending[name]
9191
inherit_fields = defs.reduce(true) { |acc, d| d.fields.nil? ? acc : d.fields }
@@ -101,7 +101,7 @@ def build_view(name)
101101
defs.each { |d| view.class_eval(&d.definition) if d.definition }
102102
view
103103
end
104-
# rubocop:enable Metrics/CyclomaticComplexity
104+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
105105
end
106106
end
107107
end

0 commit comments

Comments
 (0)