Module: Api::MultiplexedLibraryTubeIo::Extensions
- Included in:
- MultiplexedLibraryTube
- Defined in:
- app/models/api/multiplexed_library_tube_io.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/models/api/multiplexed_library_tube_io.rb', line 12 def self.included(base) base.class_eval do extend ClassMethods scope :including_associations_for_json, -> { includes(%i[uuid_object barcodes scanned_into_lab_event]) } end end |
Instance Method Details
#json_root ⇒ Object
20 21 22 |
# File 'app/models/api/multiplexed_library_tube_io.rb', line 20 def json_root 'multiplexed_library_tube' end |