Module: ModelExtensions::TagLayout

Included in:
TagLayout
Defined in:
app/api/model_extensions/tag_layout.rb

Overview

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
# File 'app/api/model_extensions/tag_layout.rb', line 5

def self.included(base)
  base.class_eval do
    extend ModelExtensions::Plate::NamedScopeHelpers
    include_plate_named_scope :plate

    scope :include_tag_group, -> { includes(tag_group: :tags, tag2_group: :tags) }
  end
end