include Mongoid::Timestamps
This commit is contained in:
parent
fa81b04eee
commit
0067ac48a5
|
@ -1,6 +1,7 @@
|
|||
class Asset
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
mount_uploader :data, AssetUploader
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class AttributeModel
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class I18nVariable
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
field :document_class, :type => String
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class Item
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :name, :index => true
|
||||
field :full_name, :index => true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class Layout
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :name, :index => true
|
||||
field :description
|
||||
|
@ -16,4 +17,4 @@ class Layout
|
|||
Layout.count > 0
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class Site
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :in_use_locales, :type => Array
|
||||
field :valid_locales, :type => Array
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class Snippet
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :name, :index => true
|
||||
field :full_name, :index => true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class User
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class UserAttributeModel
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
field :i18n_variable_id, :type => BSON::ObjectId, :index => true
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class UserInfo
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class UserRole
|
||||
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
|
||||
field :key
|
||||
|
||||
|
|
Reference in New Issue