1 class Locmare.ProfilerModule.AssociationModule.HasOne extends Backbone.View
\r
4 initialize: (options) ->
\r
5 @association = options.association
\r
6 @has_one_manifest = options.has_one_manifest
\r
8 m = new @parent_model(@parent_id())
\r
9 m = new Pettanr.FilerCollection({}, @has_one_manifest.list_options(@item().get('id')))
\r
13 _this.filer = new Locmare.Filer(_this.has_one_model().item_name, items, null, _this.profiler().operators)
\r
19 this.$el.html(@filer.render().el)
\r
25 has_one_model: () ->
\r
26 @has_one_manifest.model()
\r
29 @association.profiler
\r