discourse/app/services/problem_check/rails_env.rb

18 lines
245 B
Ruby

# frozen_string_literal: true
class ProblemCheck::RailsEnv < ProblemCheck
self.priority = "low"
def call
return no_problem if Rails.env.production?
problem
end
private
def translation_data
{ env: Rails.env }
end
end