Displaying 2 results from an estimated 2 matches for "global_scop".
Did you mean:
global_scope
2011 Jul 11
2
Can't get this Rspec test to pass
...ration.'')
end
end
[/code]
Here''s the catch - we have this groovy little plugin that globally enforces
a model scope via a session id, in this case: session[:operation_id].
Here''s the code for the plugin:
[code]
module ApplicationScopeManager
mattr_accessor :global_scope
@@global_scope = []
mattr_accessor :local_scope
@@local_scope = {}
def self.included(base)
base.send :extend, ClassMethods
end
def self.setup
yield self
end
module ClassMethods
def method_missing(name, *args, &block)
return acts_as_scop...
2003 Dec 01
0
No subject
...amerec->name is a netbios name, already recoded (somewhere else)
// to our own representation, in my case, its cp866
make_nmb_name(&namerec->name, name, type);
....
}
// here is what we do later
void make_nmb_name( struct nmb_name *n, const char *name, int type)
{
extern pstring global_scope;
memset( (char *)n, '\0', sizeof(struct nmb_name) );
StrnCpy( n->name, name, 15 );
// here, unix_to_dos calls recoding again somewhere:
unix_to_dos(n->name, True);
// NAME GETS RECODED TWICE!
strupper( n->name );
n->name_type = (unsigned int)type & 0xFF;
Strn...