register_modules/app/models/installed_module.rb

14 lines
295 B
Ruby
Raw Normal View History

2014-12-30 11:52:45 +00:00
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