title: can call function in model from controller with sails framework?
body: <p>I have user model and user Controller that I have generate from sails command. I just want call function that I created on model from controller like:</p>
  
  <p>// user model</p>
  
  <pre><code>module.exports = {
    attributes: {
       name: {
         type: 'string',
         required: true
       }
    },
   CallUserFunction: function(){
     //some code goes here.
   }
  }
  </code></pre>
  
  <p>// userController</p>
  
  <pre><code>module.exports = {
     create: function(req, res){
        User.CallUserFunction();//can i call function in user Model like this? 
    }
  }
  </code></pre>