Module: ModelExtensions::Tube

Included in:
Tube
Defined in:
app/api/model_extensions/tube.rb

Overview

Included in Tube The intent of this file was to provide methods specific to the V1 API

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


4
5
6
7
8
# File 'app/api/model_extensions/tube.rb', line 4

def self.included(base)
  base.class_eval do
    scope :include_purpose, -> { includes(:purpose) }
  end
end