Rails itself doesn't has a limit or rather a way to set one.
elFinder has a variable called uploadMaxSize. Look up the Connector configuration options of elFinder for further information here.
For PaperClip use the validator called validates_attachment_size. Example Usage can be found here under Validations.