Skip to content

Commit

Permalink
Merge pull request #105 from publify/dependabot/bundler/rubocop-rails…
Browse files Browse the repository at this point in the history
…-tw-2.21.1

Update rubocop-rails requirement from ~> 2.20.2 to ~> 2.21.1
  • Loading branch information
mvz authored Sep 29, 2023
2 parents f062bab + 13c7251 commit 75d1448
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin/articles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def destroy
end

def auto_complete_for_article_keywords
@items = Tag.select(:display_name).order(:display_name).map(&:display_name)
@items = Tag.order(:display_name).pluck(:display_name)
render json: @items
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/admin/post_types_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def destroy
# Reset all Articles from the PostType we're destroying to the default PostType
# Wrap it in a transaction for safety
@post_type.transaction do
Article.where(post_type: @post_type.permalink).each do |article|
Article.where(post_type: @post_type.permalink).find_each do |article|
article.post_type = "read"
article.save
end
Expand Down
2 changes: 1 addition & 1 deletion publify_core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rubocop-capybara", "~> 2.19.0"
s.add_development_dependency "rubocop-factory_bot", "~> 2.24.0"
s.add_development_dependency "rubocop-performance", "~> 1.19.0"
s.add_development_dependency "rubocop-rails", "~> 2.20.2"
s.add_development_dependency "rubocop-rails", "~> 2.21.1"
s.add_development_dependency "rubocop-rspec", "~> 2.24.1"
s.add_development_dependency "shoulda-matchers", "~> 5.3"
s.add_development_dependency "simplecov", "~> 0.22.0"
Expand Down

0 comments on commit 75d1448

Please sign in to comment.