Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Jan 8, 2024
1 parent a555679 commit 371f6da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class User < ApplicationRecord

# Include default devise modules.
TEMP_EMAIL_REGEX = /\Achange@tmp/
PERMISSIONS = %w(operator ngo ngo_manager government)
PERMISSIONS = %w[operator ngo ngo_manager government]

enum permissions_request: { operator: 1, ngo: 2, ngo_manager: 4, government: 6, holding: 7 }
enum permissions_request: {operator: 1, ngo: 2, ngo_manager: 4, government: 6, holding: 7}

belongs_to :country, inverse_of: :users, optional: true

Expand Down
2 changes: 1 addition & 1 deletion db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require "active_record/fixtures"

fixtures_dir = File.join(Rails.root, "db", "fixtures")
fixture_files = Dir["#{fixtures_dir}/**/*.yml"].map { |f| f[(fixtures_dir.size + 1)..-5] }
fixture_files = Dir["#{fixtures_dir}/**/*.yml"].pluck((fixtures_dir.size + 1)..-5)

$stdout.puts "Loading fixtures..."
# NOTE: in case of integrity errors, check config/initializers/active_record_fixtures.rb for monkey patch to get better error messages
Expand Down

0 comments on commit 371f6da

Please sign in to comment.