Class: Errors::NonDevelopment

Inherits:
Views::Base
  • Object
show all
Includes:
Phlex::Rails::Helpers::ContentFor
Defined in:
app/views/databasium/errors/non_development.rb

Instance Method Summary collapse

Instance Method Details

#view_templateObject



8
9
10
11
12
13
14
15
16
17
18
# File 'app/views/databasium/errors/non_development.rb', line 8

def view_template
  content_for(:title) { "Non Development Environment" }
  div(class: "w-full h-full p-4") do
    h1(class: "text-2xl font-bold") do
      "You are not allowed to access this page in non development environment"
    end
    p(class: "text-red-500 bg-white w-fit px-4 py-2 rounded-md my-2") do
      "DATABASIUM IS NOT MEANT TO BE USED IN PRODUCTION, ALWAYS BE SURE TO NEVER EXPOSE IT TO THE PUBLIC."
    end
  end
end