Module: Instances::ClassMethods
- Defined in:
- backend/app/model/mixins/instances.rb
Instance Method Summary collapse
Instance Method Details
#sequel_to_jsonmodel(objs, opts = {}) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'backend/app/model/mixins/instances.rb', line 25 def sequel_to_jsonmodel(objs, opts = {}) jsons = super jsons.each do |json| if json['instances'] json['instances'].reject! {|instance| instance['instance_type'] == 'digital_object' && !instance['digital_object'] } end end jsons end |