search for: delegateclass

Displaying 4 results from an estimated 4 matches for "delegateclass".

2007 Jun 11
2
DelegateClass fails
This is not a big deal, but DelegateClass fails with rspec when methods are defined in the the delegating class. Here''s code that demonstrates: require ''delegate'' gem ''rspec'' # Version 1.0.5 ############################################################ # CONTROL EXAMPLE: Works FINE. #########...
2010 Sep 23
3
superclass mismatch for class Tempfile
I''ve been facing a problem when generating a model (or controller, ...). I''m using rails 2.3.8 and ruby 1.8.7. Has anybody been facing anything like this? script/generate controller test /usr/lib/ruby/1.8/tempfile.rb:12: superclass mismatch for class Tempfile (TypeError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require''
2005 Feb 07
1
[matz@ruby-lang.org: Re: Performance of CGI::Cookie / SimpleDelegator fix]
...y the patch or wait for 1.8.3 (which will be released in April, hopefully). matz. --- lib/cgi.rb 1 Nov 2004 23:53:48 -0000 1.68.2.9 +++ lib/cgi.rb 8 Feb 2005 00:32:29 -0000 @@ -772,3 +772,3 @@ class CGI # cookie1.secure = true - class Cookie < SimpleDelegator + class Cookie < DelegateClass(Array) ----- End forwarded message ----- -- William <wmorgan-rubytorrent-devel@masanjin.net>
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
..."index" end See a full example on http://codepaste.org/view/paste/334 * Increased performance by up to 100% with a revised cookie class that fixes the performance problems with the default one that ships with 1.8.1 and below. It replaces the inheritance on SimpleDelegator with DelegateClass(Array) following the suggestion from Matz on: http://groups.google.com/groups? th=e3a4e68ba042f842&seekm=c3sioe%241qvm%241%40news.cybercity.dk#link14 * Added caching for compiled ERb templates. On Basecamp, it gave between 8.5% and 71% increase in performance [Andreas Schwarz]. * Added i...