diff --git a/.rubocop.yml b/.rubocop.yml index b561240..47736f4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -11,3 +11,6 @@ Style/DocumentationMethod: Style/TrailingCommaInArguments: Enabled: false + +Naming/BlockForwarding: + Enabled: false diff --git a/lib/shale/builder.rb b/lib/shale/builder.rb index a2d4ee6..418c86a 100644 --- a/lib/shale/builder.rb +++ b/lib/shale/builder.rb @@ -106,7 +106,7 @@ def attributes; end ).void end def attribute(name, type, collection: false, default: nil, doc: nil, **kwargs, &block) - super(name, type, collection: collection, default: default, **kwargs, &block) + super(name, type, collection:, default:, **kwargs, &block) attributes[name.to_sym]&.doc = doc # add doc to the attribute return unless type < ::Shale::Mapper