-
Notifications
You must be signed in to change notification settings - Fork 329
Mongoid
Sergio Cambra edited this page Jun 29, 2016
·
1 revision
Basic support has been added for Mongoid, only listing has been tested, other actions may work but they are not supported officially.
Every mongoid document need to include permissions module (ActiveScaffold::ActiveRecordPermissions::ModelUserAccess::Model) and define to_label method:
class LogLine
include Mongoid::Document
include ActiveScaffold::ActiveRecordPermissions::ModelUserAccess::Model
field :hostname, type: String
field :message, type: String
def to_label
hostname
end
end