Module: RightsRestrictionNotes::ClassMethods
- Defined in:
- backend/app/model/mixins/rights_restriction_notes.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) create_from_json(json, opts = {})
28 29 30 31 32 |
# File 'backend/app/model/mixins/rights_restriction_notes.rb', line 28 def create_from_json(json, opts = {}) obj = super RightsRestrictionNotes::Implementation.process_restriction_notes(json, obj) obj end |
- (Object) handle_delete(ids)
34 35 36 37 38 39 |
# File 'backend/app/model/mixins/rights_restriction_notes.rb', line 34 def handle_delete(ids) join_column = self.association_reflection(:rights_restriction)[:key] RightsRestriction.filter(join_column => ids).delete super end |