Sha256: b2822e6f4e5c0d250effffb9180ebbe2fb3d0d4263e0d29785c8b72bbc5504af

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

class Locomotive.Models.CustomFieldSelectOption extends Backbone.Model

  toJSONForSave: ->
    _.tap {}, (hash) =>
      for key, value of @.toJSON()
        hash[key] = value unless _.include(['created_at', 'updated_at'], key)

class Locomotive.Models.CustomFieldSelectOptionsCollection extends Backbone.Collection

  model: Locomotive.Models.CustomFieldSelectOption

  toJSONForSave: ->
    @map (model) => model.toJSONForSave()

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc9 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc8 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc7 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc6 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc5 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc4 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc2 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee
locomotive_cms-2.0.0.rc1 app/assets/javascripts/locomotive/models/custom_field_select_option.js.coffee