Class: Jigsaw::LayoutTemplate

Inherits:
ApplicationRecord show all
Includes:
GridConfigurable
Defined in:
app/models/jigsaw/layout_template.rb

Constant Summary

Constants included from GridConfigurable

GridConfigurable::SCHEMA, GridConfigurable::SCHEMA_PATH

Instance Method Summary collapse

Methods included from GridConfigurable

#colGap=, #config=, #rowGap=, #skip_config_validation?, #sync_slots, #unique_area_names

Instance Method Details

#slotsObject

LayoutTemplate doesn’t have child slots — it just defines the grid structure. We provide a ‘slots` method stub so GridConfigurable’s sync_slots doesn’t blow up if called, but it’s not used on this model.



12
13
14
# File 'app/models/jigsaw/layout_template.rb', line 12

def slots
  Slot.none
end