forked from saurabh/orbit4-5
site type added
This commit is contained in:
parent
5c33fa0ddb
commit
075ae1b135
|
@ -9,6 +9,7 @@ class Site
|
|||
field :address, type: String
|
||||
field :footer, localize: true
|
||||
field :sub_menu, localize: true
|
||||
field :site_type
|
||||
field :site_map_link, type: String, :default => "/sitemap"
|
||||
field :terms_of_use_link, type: String
|
||||
field :google_analytics, type: String
|
||||
|
|
|
@ -11,6 +11,7 @@ if Site.count == 0
|
|||
site.title_translations = {:en=>"Orbit",:zh_tw=>"Orbit"}
|
||||
site.valid_locales = [:en, :zh_tw]
|
||||
site.in_use_locales = site.valid_locales
|
||||
site.site_type = "orbit"
|
||||
site.template = (Dir.glob("#{Rails.root}/app/templates/*").collect{|temp| temp.split('/').last}-['mobile']).first
|
||||
site.save
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue