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.

Michael Koziarski's latest activity

Saturday, August 08 2009
2502 [patch] AR::Base Reverse find_in_batches. was updated in Ruby on Rails
  • Michael Koziarski
    • Tag changed from active_record, batches, bugmash, enhancement, patch to active_record, batches, enhancement, patch
    by Michael Koziarski at 3:22 AM
  • Michael Koziarski
    • State changed from new to wontfix
    by Michael Koziarski at 3:22 AM

    This function is deliberately limited to primary_key order because those values don't change. If you order by title and manipulate the title in your block, you'...

2881 Can't define accessors for serialized attributes was updated in Ruby on Rails
  • Michael Koziarski
    • Tag cleared.
    by Michael Koziarski at 3:17 AM
  • Michael Koziarski
    • Assigned user set to josh
    • Milestone cleared.
    by Michael Koziarski at 3:16 AM

    Serialized accessors appear to be unconditionally defined.

2975 constantize now less robust in 2.3.3 was updated in Ruby on Rails
  • Michael Koziarski
    • State changed from new to wontfix
    by Michael Koziarski at 3:06 AM

    This appears to be 'just how it is' with ruby unfortunately:

    >> Gamma.const_get("Beta")
    => Alpha::Beta
    >> Gamma.const_defined?("Beta")
    => false
    

    We check const...

2823 Calculations break with multi-column :select argument was updated in Ruby on Rails
  • Michael Koziarski
    • Assigned user set to Michael Koziarski
    • Tag changed from activerecord, bugmash, calculations, patch to activerecord, calculations, patch
    • Milestone cleared.
    by Michael Koziarski at 2:54 AM

    We can't just take the first column specified, while it works for your example it's not 'good enough' in general. Instead we need a way to fix it permanently

    I'...

Wednesday, August 05 2009
2725 negative migration version was updated in Ruby on Rails
  • Michael Koziarski
    Michael Koziarski commented at 7:05 AM

    It just seems a little terse to me.

    Could we fix it by simply making sure db:migrate:down has sensible defaults?

2241 Empty Array to_xml Should Still Yield Builder was updated in Ruby on Rails
  • Michael Koziarski
    Michael Koziarski commented at 7:04 AM

    You actually can just pass the builder in yourself:

      builder = ...
      builder.count 2
      xml = [].to_xml :builder=>builder
    

    Wouldn't that cover your situation?

2991 After Transaction Patch was updated in Ruby on Rails
  • Michael Koziarski
    • Assigned user set to Jeremy Kemper
    by Michael Koziarski at 7:02 AM

    I certainly like the features of after_commit and after_rollback. The implementation is pretty intrusive (necessarily).

    However another part of me thinks that o...

2765 after_create callback not working as it should was updated in Ruby on Rails
  • Michael Koziarski
    • Tag changed from 2.2.2, after_create, callback, polymorphic to 2.2.2, after_create, bugmash, callback, polymorphic
    by Michael Koziarski at 6:44 AM