Created
April 28, 2009 15:44
-
-
Save mariuswilms/103218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Attachment extends AppModel { | |
// ... | |
function beforeMake($file, $process = array()) { | |
extract($process); | |
if ($this->alias == 'Avatar' && $version != 's') { | |
return true; | |
} | |
if ($version != 'xs') { | |
return ClassRegistry::init('Queue.Job')->put(compact('file', 'process')); | |
} | |
if ($name == 'Image') { | |
return $this->_myCustomResizeMethod($file, $instructions); | |
} | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment