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:
commit
1feea95816
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue