Update temp_file.

This commit is contained in:
BoHung Chiu 2021-03-08 13:55:46 +08:00
parent b254f99f2d
commit e5e68bbaae
1 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,11 @@ class Site
DEBUG = false
has_many :page_sets, :autosave => true, :dependent => :destroy
accepts_nested_attributes_for :page_sets, :allow_destroy => true
field :root_url, type: String
field :update_flag, type: Boolean, default: true
field :password_high_security, type: Boolean, default: false
field :change_password_regularly, type: Boolean, default: false
field :change_password_period, type: String
field :title, as: :slug_title, type: String, localize: true
field :school, type: String
field :department, type: String
@ -49,6 +54,15 @@ class Site
field :google_oauth_enabled, :type => Boolean, :default => false
field :google_client_id
field :google_client_secret
field :gmail_oauth2_enabled, :type => Boolean, :default => false
field :gmail_login_flag, :type => Boolean, :default => false
field :gmail_client_id
field :gmail_client_secret
field :gmail_access_token
field :gmail_refresh_token
field :gmail
field :meta_tags
field :every_page_sharer, type: Array, :default => ["facebook","line","twitter","google","printer"]
@ -70,6 +84,8 @@ class Site
field :orbit_bar_submenu_text_color , type: String, :default => "#ffffff"
field :orbit_bar_animation_time , type: String, :default => "0.3s"
field :login_text , type: String, :default => "", localize: true
field :sign_up_hint ,:type => Hash, :default => {}
field :sign_up_hint_enable ,:type => Hash, :default => {}
mount_uploader :default_image, ImageUploader
mount_uploader :site_logo, ImageUploader
mount_uploader :site_logo_1, ImageUploader