mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Story#116761157 - "ok" state of Contact is not always set and is dynamic
This commit is contained in:
parent
e9cf8f7900
commit
2e98e0f163
2 changed files with 2 additions and 6 deletions
|
@ -1,13 +1,9 @@
|
|||
class AdminController < ApplicationController
|
||||
layout 'admin/application'
|
||||
# before_action :authenticate_user!
|
||||
before_action :authenticate_user!
|
||||
|
||||
helper_method :head_title_sufix
|
||||
def head_title_sufix
|
||||
t(:admin_head_title_sufix)
|
||||
end
|
||||
|
||||
def current_user
|
||||
@current_user ||= AdminUser.find_by(username: :timo)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ rescue ActiveRecord::NoDatabaseError => e
|
|||
Rails.logger.info "Init settings didn't find database: #{e}"
|
||||
end
|
||||
|
||||
if false && con.present? && con.table_exists?('settings')
|
||||
if con.present? && con.table_exists?('settings')
|
||||
Setting.save_default(:admin_contacts_min_count, 1)
|
||||
Setting.save_default(:admin_contacts_max_count, 10)
|
||||
Setting.save_default(:tech_contacts_min_count, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue