Module: RightsRestrictionNotes
- Included in:
- ArchivalObject, Resource
- Defined in:
- backend/app/model/mixins/rights_restriction_notes.rb
Defined Under Namespace
Modules: ClassMethods, Implementation
Constant Summary
- RESTRICTION_NOTE_TYPES =
['accessrestrict', 'userestrict']
Class Method Summary
(collapse)
Instance Method Summary
(collapse)
Class Method Details
+ (Object) included(base)
12
13
14
15
16
|
# File 'backend/app/model/mixins/rights_restriction_notes.rb', line 12
def self.included(base)
base.extend(ClassMethods)
base.one_to_many(:rights_restriction)
end
|
Instance Method Details
- (Object) update_from_json(json, opts = {}, apply_nested_records = true)
19
20
21
22
23
|
# File 'backend/app/model/mixins/rights_restriction_notes.rb', line 19
def update_from_json(json, opts = {}, apply_nested_records = true)
obj = super
RightsRestrictionNotes::Implementation.process_restriction_notes(json, obj)
obj
end
|