forked from saurabh/orbit4-5
22 lines
521 B
Ruby
22 lines
521 B
Ruby
|
class Site
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :title, type: String
|
||
|
field :school, type: String
|
||
|
field :department, type: String
|
||
|
field :address, type: String
|
||
|
field :footer, type: String
|
||
|
field :sub_menu, type: String
|
||
|
field :terms_of_use, type: String
|
||
|
field :google_analytics, type: String
|
||
|
field :in_use_locales, :type => Array
|
||
|
field :valid_locales, :type => Array
|
||
|
field :site_active, :type => Boolean
|
||
|
|
||
|
def to_param
|
||
|
I18n.locale = :en
|
||
|
title.parameterize
|
||
|
end
|
||
|
end
|