Module: Locomotive::CurrentSiteMetafieldsHelper

Defined in:
app/helpers/locomotive/current_site_metafields_helper.rb

Defined Under Namespace

Classes: SchemaField, SchemaGroup

Instance Method Summary collapse

Instance Method Details

#current_site_metafields_schemaObject


4
5
6
7
8
# File 'app/helpers/locomotive/current_site_metafields_helper.rb', line 4

def current_site_metafields_schema
  @site_metafields_schema ||= @site.metafields_schema.map do |g|
    SchemaGroup.new(@site, g)
  end.sort_by(&:_position)
end