Removing definition of webrat_session method out of the loop
This commit is contained in:
parent
c86931b401
commit
33cfb1cd6a
@ -7,14 +7,14 @@ module Webrat
|
|||||||
def #{meth}(*args, &blk)
|
def #{meth}(*args, &blk)
|
||||||
webrat_session.#{meth}(*args, &blk)
|
webrat_session.#{meth}(*args, &blk)
|
||||||
end
|
end
|
||||||
|
|
||||||
def webrat_session
|
|
||||||
@_webrat_session ||= ::Webrat.session_class.new(self)
|
|
||||||
end
|
|
||||||
RUBY
|
RUBY
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def webrat_session
|
||||||
|
@_webrat_session ||= ::Webrat.session_class.new(self)
|
||||||
|
end
|
||||||
|
|
||||||
# all of these methods delegate to the @session, which should
|
# all of these methods delegate to the @session, which should
|
||||||
# be created transparently.
|
# be created transparently.
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user