Sha256: c43868e8e5103209529d3facc2d1b2874d329b10cb4924451731c79ba457c7a0

Contents?: true

Size: 530 Bytes

Versions: 11

Compression:

Stored size: 530 Bytes

Contents

module Locomotive
  module API
    module Forms

      class SiteForm < BaseForm

        attrs :name, :handle, :robots_txt, :locales, :domains, :timezone, :picture, :cache_enabled, :private_access, :password, :metafields_schema, :metafields, :metafields_ui
        attrs :seo_title, :meta_keywords, :meta_description, localized: true

        # Make sure locales and domains are in arrays.
        def locales
          [*@locales]
        end

        def domains
          [*@domains]
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
locomotivecms-3.3.0.rc2 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.1.2 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.2.1 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.3.0.rc1 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.2.0 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.2.0.rc2 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.2.0.rc1 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.1.1 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.1.0 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.1.0.rc3 app/api/locomotive/api/forms/site_form.rb
locomotivecms-3.1.0.rc2 app/api/locomotive/api/forms/site_form.rb