Skip to content

Commit

Permalink
max LineLength to 125
Browse files Browse the repository at this point in the history
  • Loading branch information
ritikesh committed Sep 16, 2023
1 parent 74e1cae commit c3b7c30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Style/SafeNavigation:
Enabled: false

Layout/LineLength:
Max: 175
Max: 125

Lint/MissingSuper:
Enabled: false
Expand Down
4 changes: 3 additions & 1 deletion lib/blueprinter/extractors/association_extractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ def extract(association_name, object, local_options, options = {})
private

def default_value(association_options)
association_options.key?(:default) ? association_options.fetch(:default) : Blueprinter.configuration.association_default
return association_options.fetch(:default) if association_options.key?(:default)

Blueprinter.configuration.association_default
end

def association_blueprint(blueprint, value)
Expand Down

0 comments on commit c3b7c30

Please sign in to comment.