0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fix typo in disallow-object-controller

This commit is contained in:
Ivan Votti 2015-01-13 22:13:26 +07:00
parent 0cb3483bc0
commit a63d3ec350

View file

@ -22,7 +22,7 @@ module.exports.prototype = {
var lines = file.getLines();
lines.forEach(function (line, index) {
var location = line.indexOf(/ObjectController.extend/);
var location = line.indexOf('ObjectController.extend');
if (location !== -1) {
errors.add('Ember.ObjectController is deprecated, please use Ember.Controller and access model properties directly.', index + 1, location + 1);