Skip to content

Commit

Permalink
Rubocop is a cop
Browse files Browse the repository at this point in the history
  • Loading branch information
Un3x committed Aug 26, 2024
1 parent 116ab78 commit 0d2879e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/lib/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,6 @@ def create_user_authorization_request_role(params = {})
end

def load_all_models!
Dir[Rails.root.join('app/models/**/*.rb')].each { |f| require f }
Rails.root.glob('app/models/**/*.rb').each { |f| require f }
end
end
2 changes: 1 addition & 1 deletion app/models/abstract_blog_post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def self.all
end

def self.blog_posts_files
Dir[Rails.root.join('config/blog_posts', api, '*.md')]
Rails.root.glob("config/blog_posts/#{api}/*.md")
end
end
2 changes: 1 addition & 1 deletion app/models/prolong_token_wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ProlongTokenWizard < ApplicationRecord
delegate :prolong!, to: :token
delegate :authorization_request, to: :token

enum status: {
enum :status, {
owner: 0,
project_purpose: 10,
contacts: 20,
Expand Down
4 changes: 2 additions & 2 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.

# Require helpers files containing factories
Dir[Rails.root.join('spec/helpers/**/*.rb')].each { |f| require f }
Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
Rails.root.glob('spec/helpers/**/*.rb').each { |f| require f }
Rails.root.glob('spec/support/**/*.rb').each { |f| require f }

# Checks for pending migration and applies them before tests are run.
# If you are not using ActiveRecord, you can remove this line.
Expand Down

0 comments on commit 0d2879e

Please sign in to comment.