mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 04:21:36 +00:00
Fix user.rb, applicaiton.rb and routes.rb
This commit is contained in:
parent
dcac8e067a
commit
6c3648cafe
3 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
attribute :lastvisit, :datetime, default: Time.now.utc
|
||||
|
||||
belongs_to :team, :optional => true, :optional => true
|
||||
belongs_to :team, :optional => true
|
||||
has_one :profile, :dependent => :destroy
|
||||
has_many :bans, :dependent => :destroy
|
||||
has_many :articles, :dependent => :destroy
|
||||
|
|
|
@ -14,7 +14,7 @@ module Ensl
|
|||
config.exceptions_app = self.routes
|
||||
|
||||
# Load Rails 5
|
||||
config.load_defaults 5.0
|
||||
# config.load_defaults 5.0
|
||||
|
||||
# Additional assets
|
||||
config.assets.precompile += ["themes/*/theme.css", "themes/*/errors.css"]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Ensl::Application.routes.draw do
|
||||
if not Rails.env.development?
|
||||
if Rails.env.production?
|
||||
%w(403 404 422 500).each do |code|
|
||||
get code, to: "errors#show", code: code
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue