0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Merge pull request #4794 from ivanvotti/fix-disallow-object-controller

Fix typo in disallow-object-controller
This commit is contained in:
Jason Williams 2015-01-13 10:05:43 -06:00
commit 1feea95816

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);