lib/poolparty/base.rb in auser-poolparty-1.3.5 vs lib/poolparty/base.rb in auser-poolparty-1.3.6
- old
+ new
@@ -35,11 +35,10 @@
# - self
# - instance_eval block
# - stack
def run_in_context(o={}, &block)
proc = Proc.new do
- # Name MUST be set first
- set_vars_from_options(:name => o[:name]) if o.has_key?(:name)
+ set_vars_from_options(:name => o[:name]) if o.has_key?(:name) # Name MUST be set first
set_vars_from_options(o)
instance_eval &block if block
end
super(&proc)
end
\ No newline at end of file