Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Daniel Schierbeck's latest activity

Monday, September 22 2008
984 Make it possible to alias delegation methods was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 5:12 PM

    Chad: here's a scenario:

    class Invoice
    
      def initialize(client)
        @client = client
      end
    
      delegate :name, :address, :to => :@client, :prefix => true
    
    end
    ...
Sunday, September 21 2008
984 Make it possible to alias delegation methods was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 2:34 PM

    One question though -- what if the methods are delegated to something other than a method? A custom prefix still makes sense, but I'm not sure what the true val...

  • Daniel Schierbeck
    Daniel Schierbeck commented at 2:31 PM

    Added documentation and simplified the implementation a bit.

  • Daniel Schierbeck
    Daniel Schierbeck commented at 2:07 PM

    Found out I could have it all in one file, sorry about the patch spam.

  • Daniel Schierbeck
    • Tag changed from activesupport, patch to activesupport, patch
    by Daniel Schierbeck at 2:01 PM

    I've added tests and an implementation of what has been discussed here.

Sunday, September 14 2008
1012 Typo in the docs for AR aggregations was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 9:26 PM

    This has been committed to docrails, so it can safely be closed here.

984 Make it possible to alias delegation methods was updated in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck commented at 9:25 PM

    Chad's approach seems a lot more sensible than using the :to option. Is someone working on this? Otherwise, I could give it a stab later this week.

Wednesday, September 10 2008
1012 Typo in the docs for AR aggregations was created in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck created the ticket at 6:44 PM

    This fixes a small typo in the docs.

Saturday, September 06 2008
984 Make it possible to alias delegation methods was created in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck created the ticket at 5:25 PM

    This patch allows one to prefix delegation methods, either with a custom string or with the name of the delegation target.

    class Invoice
    
      attr_accessor :clie...
Sunday, August 24 2008
893 Simplify #constantize was created in Ruby on Rails
  • Daniel Schierbeck
    Daniel Schierbeck created the ticket at 2:47 PM

    This patch makes #constantize use #inject instead of #each, making it more Rubyesque, at least that's my opinion.

    Hope you have a look at it.