Module: ModelExtensions::TagLayout

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

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


2
3
4
5
6
7
8
9
# File 'app/api/model_extensions/tag_layout.rb', line 2

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