Skip to content

Commit

Permalink
fix(gen): Fixed missing oauth property in .yo-rc.json after 2.0.5…
Browse files Browse the repository at this point in the history
… update
  • Loading branch information
meeDamian committed Jul 30, 2014
1 parent 4000c4a commit 11d324b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/index.js
Expand Up @@ -42,6 +42,16 @@ var AngularFullstackGenerator = yeoman.generators.Base.extend({
default: true,
}], function (answers) {
this.skipConfig = answers.skipConfig;

// NOTE: temp(?) fix for #403
if(typeof this.oauth==='undefined') {
var strategies = Object.keys(this.filters).filter(function(key) {
return key.match(/Auth$/) && key;
});

if(strategies.length) this.config.set('oauth', true);
}

cb();
}.bind(this));
} else {
Expand Down

0 comments on commit 11d324b

Please sign in to comment.