Skip to content

Commit

Permalink
Add deprecation warning for old file types
Browse files Browse the repository at this point in the history
  • Loading branch information
creynders committed Apr 17, 2015
1 parent 3a64699 commit dba2d77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fields/types/BuildFileAlias.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var keystone = require('../../'),

module.exports = function(adapter, multiple) {
function file(list, path, options) {
console.log('Keystone:','"'+adapter+'File" will be deprecated, please create a "'+adapter+'" Store and use "FileType"');
var storeName = list.key + '-' + path;
new keystone.Store(storeName, _.defaults({
adapter: adapter
Expand Down

0 comments on commit dba2d77

Please sign in to comment.