Making TagRule autocomplete available to models other than Customer

Incorporate ng admin.tags module and rails TagController into existing admin.tagRules module + TagRuleController
This commit is contained in:
Rob Harrington
2016-05-11 10:52:50 +10:00
parent 9e0b97dc9c
commit ddcfe1535a
20 changed files with 89 additions and 74 deletions

View File

@@ -56,7 +56,7 @@ describe "CustomersCtrl", ->
{ text: 'three' }
]
beforeEach ->
http.expectGET('/admin/tags.json?enterprise_id=1').respond 200, tags
http.expectGET('/admin/tag_rules/map_by_tag.json?enterprise_id=1').respond 200, tags
it "retrieves the tag list", ->
promise = scope.findTags('')