Dave Birch wrote:
> Hi Marnen
> 
> Thanks very much for the reponse.
> 
> Marnen Laibow-Koser wrote:
>> Dave Birch wrote:
> 
>> You are aware of the serious security problems with this, right?
> 
> Yes, this isn't a public-facing site, and there will be no front-end 
> access to the database that will generate and store the code.

Then you shouldn't need to do this in the first place.  If there's no 
frontend access to the DB, presumably that means that the app itself is 
generating the code.  If so, then it can keep it as a method in a live 
object rather than writing it to the database and opening up a security 
hole.

> 
>> [...]
>>> But I cannot work out how to get the scope of the class within
>>> which Substitutable has been "include"d.  
>> 
>> Perhaps you should use the Module#included callback to register it.
> 
> I will look at this - thanks again for the tip.
> 
> Regards,
> Dave
> 
> 
>> 
>> Best,
>> --??
>> Marnen Laibow-Koser
>> http://www.marnen.org
>> marnen / marnen.org

Best,
--??
Marnen Laibow-Koser
http://www.marnen.org
marnen / marnen.org
-- 
Posted via http://www.ruby-forum.com/.