Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dsomel21 committed Oct 27, 2023
1 parent 64ca1ba commit 44c5050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/chapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def csv_rows
file_path = "lib/imports/#{self.book.sequence}/#{self.number}.csv"

unless File.exist?(file_path)
puts "CSV file #{file_path} not found. " + Pastel.new.red.on_bright_white.bold("Are you sure you added it to #{file_path}?")
Rails.logger.debug "CSV file #{file_path} not found. " + Pastel.new.red.on_bright_white.bold("Are you sure you added it to #{file_path}?")
raise "CSV file #{file_path} not found. "
end

Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Application < Rails::Application

config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'https://spg.dev', /\A.*\.netlify\.app\z/
origins 'https://spg.dev', /\A.*\.netlify\.app\z/, 'localhost:3000'

resource '*',
headers: :any,
Expand Down

0 comments on commit 44c5050

Please sign in to comment.