[Radiant] Checking for other extensions and gems

Daniel Sheppard daniels at thegroggysquirrel.com
Mon Oct 29 00:05:12 CDT 2007


raise 'blah requires the installation of the Shards extension' unless defined?(ShardsExtension) 

> -----Original Message-----
> From: radiant-bounces at lists.radiantcms.org 
> [mailto:radiant-bounces at lists.radiantcms.org] On Behalf Of 
> Chris Parrish
> Sent: Monday, 29 October 2007 4:03 PM
> To: radiant at lists.radiantcms.org
> Subject: [Radiant] Checking for other extensions and gems
> 
> I'm writing an extension that depends on shards.  I'd like to 
> check for 
> it and raise a useful error message when my extension is initialized.
> 
> Any suggestions as to the best way to do that?



More information about the Radiant mailing list