Skip to content

Commit

Permalink
Merge pull request #4760 from rubyforgood/dependabot/bundler/rubocop-…
Browse files Browse the repository at this point in the history
…rails-2.27.0

build(deps-dev): bump rubocop-rails from 2.25.1 to 2.27.0
  • Loading branch information
awwaiid authored Dec 21, 2024
2 parents 2d13486 + cf54a76 commit 97693c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ group :development, :test do
gem "rubocop"
# Rails add-on for static analysis.
gem 'rubocop-performance'
gem "rubocop-rails", "~> 2.25.1"
gem "rubocop-rails", "~> 2.27.0"
# Default rules for Rubocop.
gem "standard", "~> 1.40"
# Erb linter.
Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ GEM
rubocop-performance (1.23.0)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.25.1)
rubocop-rails (2.27.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-graphviz (1.2.5)
rexml
Expand Down Expand Up @@ -789,7 +789,7 @@ DEPENDENCIES
rspec-rails (~> 7.0.1)
rubocop
rubocop-performance
rubocop-rails (~> 2.25.1)
rubocop-rails (~> 2.27.0)
sass-rails
shoulda-matchers (~> 6.2)
simple_form
Expand Down
2 changes: 1 addition & 1 deletion app/models/organization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,6 @@ def get_admin_email
end

def logo_size_check
errors.add(:logo, 'File size is greater than 1 MB') if logo.byte_size > 1.megabytes
errors.add(:logo, 'File size is greater than 1 MB') if logo.byte_size > 1.megabyte
end
end

0 comments on commit 97693c0

Please sign in to comment.