Sha256: f2ce7be7c8a9eb053e01ba66b58da6b64940e306f0d5d5f34fb7c152489fd979

Contents?: true

Size: 462 Bytes

Versions: 8

Compression:

Stored size: 462 Bytes

Contents

class @AntsSettings
  constructor: (title, slug, formSchema, apiPath='/admin') ->
    config =
      title: title
      showWithParent: true

      objectStore: new RailsObjectStore({
        resource: 'settings_object'
        path: "#{apiPath}/settings_objects/#{slug}"
      })

      formSchema:
        values:
          type: 'hash'
          formSchema: formSchema

      onViewShow: (view) ->
        view.$el.addClass 'view-settings'

    return config

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ants-0.3.14 app/assets/javascripts/ants/settings.coffee
ants-0.3.13 app/assets/javascripts/ants/settings.coffee
ants-0.3.12 app/assets/javascripts/ants/settings.coffee
ants-0.3.11 app/assets/javascripts/ants/settings.coffee
ants-0.3.10 app/assets/javascripts/ants/settings.coffee
ants-0.3.9 app/assets/javascripts/ants/settings.coffee
ants-0.3.5 app/assets/javascripts/ants/settings.coffee
ants-0.3.4 app/assets/javascripts/ants/settings.coffee