Skip to content

Commit

Permalink
Fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Verseth committed May 13, 2024
1 parent ec55a80 commit 4779c67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ Style/DocumentationMethod:

Style/TrailingCommaInArguments:
Enabled: false

Naming/BlockForwarding:
Enabled: false
2 changes: 1 addition & 1 deletion lib/shale/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4779c67

Please sign in to comment.