14 lines
295 B
Ruby
14 lines
295 B
Ruby
|
class InstalledModule
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
field :permission_granted, type: Boolean, :default => false
|
||
|
field :r_module, type: BSON::ObjectId
|
||
|
|
||
|
belongs_to :registered_site
|
||
|
|
||
|
def registered_module
|
||
|
RegisteredModule.find(self.r_module)
|
||
|
end
|
||
|
|
||
|
end
|