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