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 c = @has_one_manifest.list_options(@item().get('id'))
\r
9 m = new Pettanr.FilerCollection({}, c)
\r
10 @filer = new Locmare.Filer({
\r
11 item_name: @has_one_model().item_name(),
\r
14 operators: @profiler().operators
\r
20 this.$el.html(@filer.render().el)
\r
26 has_one_model: () ->
\r
27 @has_one_manifest.model()
\r
30 @association.profiler
\r