'click @ui.deactivate': 'deactivate'
- initialize: ->
- super
- @model.set _.findWhere(@options.app.qualityProfiles, key: @model.get('qProfile'))
-
change: ->
@options.app.codingRulesQualityProfileActivationView.model = @model
@options.app.codingRulesQualityProfileActivationView.show()
# collection: customRules
# rule: @model
else
- qualityProfiles = new Backbone.Collection options.actives
+ _.map options.actives, (active) =>
+ _.extend active, options.app.getQualityProfileByKey active.qProfile
+ qualityProfiles = new Backbone.Collection options.actives,
+ comparator: 'name'
@qualityProfilesView = new CodingRulesDetailQualityProfilesView
app: @options.app
collection: qualityProfiles