Class: Consent::History
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Consent::History
- Includes:
- SubjectCoder::Model
- Defined in:
- app/models/consent/history.rb
Class Method Summary collapse
Methods included from SubjectCoder::Model
Class Method Details
.record(command, permission) ⇒ Object
14 15 16 17 18 19 |
# File 'app/models/consent/history.rb', line 14 def self.record(command, ) create!( **.slice(:role_id, :subject, :action, :view), command: command.to_s ) end |