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)

Sunday, April 27 2008
39 Add blocks to AR create and update was updated
  • Adam Meehan
    Adam Meehan commented at 7:36 AM

    Added another patch which uses returning. I will let the core team decide what they prefer.

    Thanks for the suggestion Matt.

  • Adam Meehan
    Adam Meehan commented at 7:24 AM

    Sure that would be nice. I was not sure how often 'returning' was being used in rails code. I thought of it more as for external use.

    From greping the rails e...

  • matthuhiggins
    matthuhiggins commented at 6:53 AM

    Perhaps a tangent, but why not replace

    object = new(attributes)

    yield(object) if block_given?

    object.save

    object

    with

    returning new(attributes) do |objec...

Saturday, April 26 2008
40 nil default options for file_store was updated
  • geemus (Wesley Beary)
    geemus (Wesley Beary) commented at 8:42 PM

    Right. Still trying to get the hang of this git business. [monki] is good enough for this time, I'll know better next time.

  • Michael Koziarski
    • State changed from new to resolved
    by Michael Koziarski at 1:24 AM

    I've applied this now.

    If you want to have your name and email show up in the logs, you'll need to use git format-patch --stdout. But thanks for the fix in t...

  • Repository
    Repository commented at 1:22 AM

    (from [f3fd44f76b64d6c30967a31b91709d27bce41f72]) Add default options to file_store to make it align with the other cache stores. [monki]

    [#40 state:resolve...

51 Gem dependencies can be listed in config/gems.yml was created
39 Add blocks to AR create and update was updated
50 Rails.vendor_rails? doesn't exist in older boot.rb files was created
  • John Barnette
    John Barnette created the ticket at 6:44 AM

    The initializer uses vendor_rails? to decide whether or not to install gem stubs, but it's not guaranteed to be there during upgrades. I've patched the initial...

Add default options to file_store to ... was committed by Repository at 1:22 AM
45 Association Preload should quote table names was updated
  • Michael Koziarski
    • State changed from new to resolved
    by Michael Koziarski at 1:16 AM

    ugh, closing again.

  • Michael Koziarski
    • State changed from resolved to new
    by Michael Koziarski at 1:16 AM

    yeah, that was it.

    Man that was an awesome error ;)

  • Repository
    • State changed from new to resolved
    by Repository at 1:16 AM

    (from [44d214235271cb6d2af1c327d592a3010e1ced3e]) Ensure table names are quoted by the association preloading code.

    [#45 state:resolved]

    Signed-off-by: Micha...

Ensure table names are quoted by the ... was committed by Repository at 1:16 AM
Friday, April 25 2008
48 label tag ignoring for attribute was updated
  • encoded
    encoded commented at 11:57 PM

    Ah, the attachment was there the whole time, I just didn't see it over on the right-hand side. Sorry.

  • encoded
    encoded commented at 11:57 PM

    Hrm, I seem to be unable to add an attachment... I selected my patch file in the Upload Attachment field, but it did not appear with the ticket... Any idea w...

  • encoded
    encoded created the ticket at 11:54 PM

    When using the label method on a form builder, it seems useful to be able to manually set a for attribute. Currently the to_label_tag method will either overr...

49 add has_element? method to models with has_many/through associations was created
  • Josh Susser
    Josh Susser created the ticket at 11:57 PM

    When using a model that is associated (via has_many) with other models, it is often convenient to be able to ask the containing model whether it contains (or "...

45 Association Preload should quote table names was updated
  • Frederick Cheung
    Frederick Cheung commented at 11:33 PM

    I think i've fixed the files with no new lines at the end. This should make everything hunky-dory

  • Frederick Cheung
    Frederick Cheung commented at 10:20 AM

    I've had a bit of a fiddle and I can reproduce this if i edit jobs.yml (added in this patch) so that the last line reads

    magician:
      id:
    

    instead of

    magici...
  • Frederick Cheung
    Frederick Cheung commented at 9:02 AM

    Wow, that obviously didn't happen when I ran the tests. I tried again applying the patch to a clean checkout of rails and it still looks ok (I cleared out the ...

  • Michael Koziarski
    Michael Koziarski commented at 8:40 AM

    Applying this causes stacks of errors:

    1418 tests, 4864 assertions, 2 failures, 70 errors

    Most of them are:

    test_eager_with_invalid_association_reference(Ea...

Added that the MySQL adapter should m... was committed by Repository at 10:33 PM
33 AssociationsPreload casts foreign keys to integers was updated
  • Frederick Cheung
    Frederick Cheung commented at 10:31 PM

    Make AP not care about whether keys are strings or integers

47 scaffold templates include tab characters was created
  • Mark H. Wilkinson
    Mark H. Wilkinson created the ticket at 7:24 PM

    The scaffold templates view_edit.html.erb and view_new.html.erb use tabs to indent the recently added label lines. These tabs are copied into any code generate...

40 nil default options for file_store was updated
  • geemus (Wesley Beary)
    geemus (Wesley Beary) commented at 7:06 PM

    Updating rails re-broke this for me today, anything else I can do to help get this in? Ie, poke? I think with the patch attached now it should be good to go,...

46 with_scope clobbers result attributes when :joins key is specified was updated
  • duncanbeevers
    • Title changed from named_scope should support joins to with_scope clobbers result attributes when :joins key is specified
    by duncanbeevers at 6:27 PM

    Attached test showing with_scope injecting false attributes when :joins key is used in scope.

43 Render partial with record doesn't assign given record to local variable if i... was updated
  • keeran
    keeran commented at 6:02 PM

    Ah good point - sorry didn't notice the tagging. Checking it out now.

Thursday, April 24 2008
46 named_scope should support joins was updated
  • duncanbeevers
    duncanbeevers commented at 10:46 PM

    Attached change to ActiveRecord::Base that gives precedence to last-specified select and provides table-name scoping to selects where joins are involved in the...

  • duncanbeevers
    duncanbeevers created the ticket at 7:59 PM

    Using with_scope with a :joins option does not narrow returned fields to those on the primary model resulting in join table attributes being added to the prima...

43 Render partial with record doesn't assign given record to local variable if i... was updated
  • orangechicken
    orangechicken commented at 9:48 PM

    If that test passes, then I'd say it's fixed in trunk but not in 2-0-stable, since the test is doing just what my expectation is.

    Anyone know if there was a f...

  • keeran
    keeran commented at 8:44 PM

    Just put some tests together to see if this needed fixing. Looks like it doesn't. Please could someone check my tests?

    Kee

Pass template object to Handler#compi... was committed by Repository at 4:59 PM
Use .gitignore as the convention for ... was committed by Repository at 3:20 PM
45 Association Preload should quote table names was created
  • Frederick Cheung
    Frederick Cheung created the ticket at 10:43 AM

    As per the FIXMEs in the source, it wasn't quoting table names. Naughty.

28 Add class method to set default order for date and time field helpers was updated
  • Adam Meehan
    • Title changed from Default order for date and time field helpers to Add class method to set default order for date and time field helpers
    by Adam Meehan at 6:08 AM
44 Custom resource paths was created
  • Ivan Vega
    Ivan Vega created the ticket at 2:02 AM

    Hi,

    This is a follow up to my previous patch on Trac ticket #11181.

    I refactored the code a bit and included more thorough tests. Plus I fixed a stupid bug o...

39 Add blocks to AR create and update was updated
Wednesday, April 23 2008
43 Render partial with record doesn't assign given record to local variable if i... was created
  • orangechicken
    orangechicken created the ticket at 10:19 PM

    This example fails:

    1. @article has_one :feed

    render :partial => @article.feed

    The expected behavior is that @article.feed is assigned to the local variable ...

21 db:structure:dump broken by 8a5a9dc was updated
  • Kyle Hargraves
    Kyle Hargraves commented at 7:20 PM

    Yep, deleting it restored functionality for me, too, tho I forgot to come back and mention that at some point.

  • Steven Soroka
    Steven Soroka commented at 5:27 PM

    Looks like this isn't necessary anymore. I removed the lines:

    if ActiveRecord::Base.connection.supports_migrations?

    File.open("db/#{RAILS_ENV}_structure.sql...

27 Ares logs response content not response size was updated
  • Sean Geoghegan
    Sean Geoghegan commented at 6:08 PM

    Do I need to get this +1'd by other people?

42 PostgreSQL: Use all config options in rake db:create was created
  • Pete Deffendol
    Pete Deffendol created the ticket at 5:38 PM

    "rake db:create" should honor all PostgreSQL database creation options allowed in the adapter's create_database method, and specified in database.yml.

    http://...

40 nil default options for file_store was updated
  • geemus (Wesley Beary)
    geemus (Wesley Beary) commented at 5:16 PM

    Lighthouse is out to get me! or something.

    Sorry about that, re-uploading now.

Fixes a subtle bug when using symbols... was committed by Repository at 10:02 AM
2 rake rails:freeze:edge on windows was updated
  • Michael Koziarski
    Michael Koziarski commented at 9:31 AM

    We're looking into the zip file, it appears to be cron jobs stomping on one another or something.

    As for this, perhaps we could extract this all into a class ...

preventing generated documentation fr... was committed by Repository at 9:28 AM
37 Tell git to ignore generated documentation was updated
  • Repository
    • State changed from new to resolved
    by Repository at 9:28 AM

    (from [30ad1827a66b8578cabc8f14a67c69b0ab17cf92]) preventing generated documentation from being picked up by git. [#37 state:resolved]

    Signed-off-by: Michael ...

39 Add blocks to AR create and update was updated
  • Adam Meehan
    Adam Meehan commented at 9:27 AM

    Updated patch with conforming more to rails conventions with blocks.