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.

This project is archived and is in readonly mode.

Activity (RSS)

Wednesday, May 07 2008
134 document HashWithIndifferentAccess was updated
  • Pratik
    Pratik commented at 6:52 PM

    Can you please give me your github username so that I can add you to docrails project ?

    Thanks.

  • Tom Piekos
    Tom Piekos created the ticket at 6:44 PM

    Attached is a patch which adds a couple of examples and corrects a spelling error in documentation for HashWithIndifferentAccess.

112 [PATCH] Detect duplicate migration names was updated
  • Steve Purcell
    Steve Purcell commented at 4:17 PM

    Here's Aslak's patch -- I had it handy...

  • DHH
    • State changed from resolved to open
    by DHH at 4:14 PM

    Ah. I thought you were worried about id clashes. Do you have the patch handy? I don't see it attached here.

  • Aslak Hellesøy
    Aslak Hellesøy commented at 3:52 PM

    This is not about ids or timestamps at all. It's about two migrations with identical class names. The class in the latest file will overwrite the class in the ...

  • DHH
    DHH commented at 3:33 PM

    With auto-incrementing ids, collision was guaranteed. With the timestamp ids, you have to be creating the same migration at the very same second for a collisio...

  • Aslak Hellesøy
    Aslak Hellesøy commented at 11:32 AM

    Steve taught me off line how to make a fix on a branch - I'll do that next time!

1 earlier change…
102 [PATCH] Add "script/dbconsole" was updated
  • Steve Purcell
    • Title changed from Add db:console tasks to [PATCH] Add "script/dbconsole"
    by Steve Purcell at 3:38 PM
133 [PATCH] Prototype Helper Doc Patch was updated
  • Jesse Newland
    Jesse Newland commented at 3:17 PM
  • Pratik
    • State changed from new to resolved
    by Pratik at 3:04 PM

    Jesse, could u please give me your github username so that I can add you to docrails project ?

  • Xavier Noria
    • Assigned user set to Pratik
    by Xavier Noria at 2:46 PM

    Thank you, applied in http://github.com/lifo/docrails/....

  • Jesse Newland
    Jesse Newland created the ticket at 2:33 PM

    This tiny patch documents passing a block to JavaScriptGenerator#call as well as JavaScriptGenerator's method_missing proxy to JavaScriptProxy. These two power...

132 document clear_query_cache was updated
  • Pratik
    • State changed from new to resolved
    by Pratik at 3:10 PM
  • Xavier Noria
    • Assigned user set to Pratik
    by Xavier Noria at 3:06 PM

    Excellent, applied in http://github.com/lifo/docrails/....

  • Ryan Norbauer
    Ryan Norbauer created the ticket at 6:59 AM

    Attached find a small but useful documentation path. Explains how and when to use the previously-undocumented clear_query_cache method, including discussion of...

129 [PATCH] doc whitespace fix was updated
  • Pratik
    • State changed from new to resolved
    by Pratik at 3:04 PM

    Erik, could u please give me your github username so that I can add you to docrails project ?

  • Xavier Noria
    • Assigned user set to Pratik
    by Xavier Noria at 3:01 PM

    Thank you, applied in http://github.com/lifo/docrails/....

  • Erik Bryn
    Erik Bryn created the ticket at 5:51 AM

    Just a simple whitespace fix to align comments

105 Assigning strings with timezone information to timezone aware attributes stri... was updated
  • Scott Fleckenstein
    Scott Fleckenstein commented at 3:02 PM

    time_zone_parse.diff is attached, a new patch that works as Geoff advertised, replacing #to_time with Time.zone.parse.

    Thanks for the advice.

  • Geoff Buesing
    • Assigned user set to Geoff Buesing
    by Geoff Buesing at 7:52 AM

    The time zone enhancement to String#to_time does make sense, but it might break apps that rely on the existing behavior (i.e., ignore any time zone info in the...

125 Eager loading load association for every STI subclass when it is declared in ... was updated
  • Frederick Cheung
    Frederick Cheung commented at 10:51 AM

    See the patch I attached :-)

  • Frederick Cheung
    Frederick Cheung commented at 12:30 AM

    D'oh, somehow manager to produce a patch with not the final version (and mix that in with a patch from another ticket I'd applied locally to test - no idea how...

  • Frederick Cheung
    Frederick Cheung commented at 12:16 AM

    I believe this does the trick. Would be good for those bitten by this to try it out

130 CGI::Cookie and CookieStore performing unnecessary work causing interoperabil... was created
  • Rich Cavanaugh
    Rich Cavanaugh created the ticket at 5:58 AM

    CookieStore is currently escaping and unescaping while this is handled in other places in ActionController. This means double the work which does, in some case...

128 Additional MySQL-specific helper methods was created
  • Nathan Wilmes
    Nathan Wilmes created the ticket at 2:08 AM

    This patch includes the methods alter_charset, add_foreign_key_constraint, drop_foreign_key_constraint, and grant_access.

Added AbstractAdapter#table_exists? a... was committed by Repository at 2:02 AM
create_table :force => true no longer... was committed by Repository at 2:02 AM
Tuesday, May 06 2008
125 Eager loading load association for every STI subclass when it is declared in ... was updated
  • Frederick Cheung
    Frederick Cheung commented at 10:51 PM

    Well [http://dev.rubyonrails.org/ticke...][this ticket] is why the current behaviour is what it is. I can't think off the top of my head whether that the ticke...

  • Denis Barushev
    Denis Barushev created the ticket at 7:10 PM

    When association is declared in superclass eager loading of this association produces one query for each subclass. Example:

    Update edge Rails and generate emp...

127 Params hash is incorrect for nested arrays was updated
  • David Röthlisberger
    David Röthlisberger commented at 10:01 PM

    Patch with a unit test demonstrating this nested array behaviour.

  • David Röthlisberger
    David Röthlisberger created the ticket at 9:56 PM

    Say you have a form with fields for creating several contacts; each contact has fields for several phone numbers. The html might look like this:

    <!-- first co...
97 Enhancement: Add scope_options inspection method to named_scope was updated
  • duncanbeevers
    duncanbeevers commented at 9:32 PM

    I think giving the method a different name is appropriate, and at a minimum the tests should be carried over.

  • Trevor Squires
    Trevor Squires commented at 8:37 PM

    The method you are looking for already exists:

    Shirt.colored('red').proxy_options

    Unless you're asking for the name to be changed/aliased to scope_options yo...

77 ActiveRecord: :select is wiped when doing a join was updated
  • Frederick Cheung
    Frederick Cheung commented at 9:21 PM

    I fear you've rather got the wrong end of the stick. :joins just write out all those joins for you, nothing else (prior to 2.0 you'd just write out the joins y...

  • Oleg
    Oleg commented at 6:14 PM

    Well, damn... You are correct. :joins actually works in this case. No reason why :include shouldn't work as well though. Rather misleading thinking that they c...

  • Frederick Cheung
    Frederick Cheung commented at 5:36 PM

    That's the way it's always been as far as I know. Sounds like you just want :joins instead of :include.

112 [PATCH] Detect duplicate migration names was updated
  • DHH
    • State changed from new to resolved
    by DHH at 8:59 PM

    We changed the migration names in edge to run off timestamps instead to avoid duplicates.

119 Add basic assertions to core_ext was updated
  • DHH
    • State changed from new to invalid
    by DHH at 8:57 PM

    We used to have a very full-fledged set of assets, but cut them down because the value they offered wasn't worth the hassle of trying to figure out when to use...

126 Page caching docs was updated
  • Jonathan Dance
    Jonathan Dance commented at 8:22 PM

    Thanks, all set!

  • Pratik
    • State changed from new to resolved
    by Pratik at 8:12 PM

    I've added your account to commit list of docrails - http://github.com/lifo/docrails/...

    Please commit the patch there yourself :)

  • Jonathan Dance
    Jonathan Dance created the ticket at 8:05 PM

    Various corrections, improvements, and clarifications to the page caching documentation, such as some coverage for apps which generate XML/RSS pages.

    This pat...

10 Immediate flash values not accessible in tests was updated
  • Nathan Wilmes
    Nathan Wilmes commented at 6:57 PM

    We took a slightly different approach to the same sorts of problems in ticket 121. Our goal with assert_showing_flash was to confirm that the app uses flash v...

117 Add assert_not_valid to model assertions was updated
  • Nathan Wilmes
    Nathan Wilmes commented at 6:23 PM

    No good reason... I've just started using git, so I'm still working out how to do some of these kinds of operations.

  • Tarmo Tänav
    Tarmo Tänav commented at 5:48 PM

    Thank you. Is there a good reason for not squishing the commits in the patch?

  • Nathan Wilmes
    Nathan Wilmes commented at 5:38 PM

    Ok, here's the updated patch that makes additional parameters optional.

121 Add assert_showing_flash was updated
105 Assigning strings with timezone information to timezone aware attributes stri... was updated
  • Dan Barry
    Dan Barry commented at 5:50 PM

    The newly attached patch interprets strings without time zone information as being in the current time zone.

124 Fixture named accessors do not work when the fixture name is not the table name was created
  • Rhett Sutphin
    Rhett Sutphin created the ticket at 5:05 PM

    If you have a fixture name which does not match the table name for the associated model, the fixture named accessors will raise an exception like this:

    NoMeth...
123 [patch] Fix to_xml serialization in some rare cases. was updated
  • Adam Sindelar
    Adam Sindelar commented at 4:57 PM

    Ok, so here's a git patch, hope it makes sense. I also ran the full rails test suite and there were no regressions on my machine (rails 2.0.2 with ruby 1.8.6)....