Skip to content

Instantly share code, notes, and snippets.

@KamuelaFranco
Forked from ciwolsey/auth.js
Last active May 21, 2016 01:21
Show Gist options
  • Save KamuelaFranco/18a438e860eab37db8554f7fc9d5565b to your computer and use it in GitHub Desktop.
Save KamuelaFranco/18a438e860eab37db8554f7fc9d5565b to your computer and use it in GitHub Desktop.
export default {
isAllowed() {
return false;
}
};
import auth from './auth'
export default {
findCar() {
if (auth.isAllowed()) return "A car";
}
};
import Car from './model';
const auth = {
isAllowed() { return true; },
};
Car.findCar(auth);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment