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)

Tuesday, May 06 2008
105 Assigning strings with timezone information to timezone aware attributes stri... was updated
  • Scott Fleckenstein
    Scott Fleckenstein commented at 12:20 AM

    Thanks Dan!

    I was going to work on fixing the patch tonight but I see that you up and solved the problems without me. :)

  • Dan Barry
    Dan Barry commented at 12:00 AM

    I've attached a new patch that works when the machine's clock is set to a different time zone than Time.zone.

117 Add assert_not_valid to model assertions was updated
  • Nathan Wilmes
    Nathan Wilmes commented at 12:20 AM

    1. assert_not_valid opposes assert_valid more closely.. we were attempting to mimic the naming convention of assert_not_equal/assert_equal.

    2. I've thought a...

  • Tarmo Tänav
    Tarmo Tänav commented at 12:08 AM

    A couple of more questions:

    1. Why not "assert_invalid"?

    2. Have you thought about supporting partial error messages checks? Basically, if you have a test fo...

118 Add mailer assertions to Rails was created
  • Nathan Wilmes
    Nathan Wilmes created the ticket at 12:16 AM

    Helper methods to quickly assert some basic characteristics of a particular ActionMailer delivery, or the last delivery made.

Monday, May 05 2008
117 Add assert_not_valid to model assertions was updated
  • Nathan Wilmes
    • Title changed from [patch] Add assert_not_valid to model assertions to Add assert_not_valid to model assertions
    by Nathan Wilmes at 11:38 PM

    I don't have a strong problem with that. I'd argue that this function is most useful as a way to confirm which errors you've received, but you could certainly...

  • Tarmo Tänav
    Tarmo Tänav commented at 9:21 PM

    Why not make the messages parameter optional and not assert the specific contents of the validation errors unless it is provided?

  • Nathan Wilmes
    Nathan Wilmes created the ticket at 8:01 PM

    Rails has had an assert_valid method for a very long time, but its corresponding opposite method never existed in Rails core. I'm submitting Pivotal Labs's im...

116 Faulty documentation was updated
  • Pratik
    • State changed from new to stale
    by Pratik at 11:00 PM
  • Xavier Noria
    • Assigned user set to Pratik
    by Xavier Noria at 10:40 PM

    Thank you, this is already fixed in edge, see this changeset.

  • ztamizzen
    ztamizzen created the ticket at 6:32 PM

    The documentation for "image_submit_tag" is faulty, it's just a matter of putting the parenthesis in the correct place.

    If you type what is in the documentati...

23 validates_uniqueness_of doesn't escape attributes was updated
  • Michael Koziarski
    • State changed from incomplete to open
    by Michael Koziarski at 9:18 PM
  • Alex MacCaw
    Alex MacCaw commented at 5:53 PM

    I don't think uploading a file to a ticket makes it go back into the feed. I've added the changes koz suggested and re-uploaded the patch (in Git's format).

96 Form helpers don't handle "question?" methods was updated
  • Andrew Vit
    Andrew Vit commented at 8:50 PM

    Updated patch to cache sanitized method name instead of doing the regex each time.

  • Rick
    • Assigned user set to Rick
    by Rick at 8:31 PM
115 validates_confirmation_of does not confirm with decimal column type was created
  • Brad Sumersford
    Brad Sumersford created the ticket at 5:12 PM

    This may fall under the "why would you want to" category, but the validates_confirmation_of validation does not properly validate decimal (BigDecimal) columns....

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

    LOL. My bad. I'll work on fixes to them :)

  • Dan Barry
    Dan Barry commented at 4:53 PM

    These tests only pass if your computer's clock is set to the same time zone as Time.zone is set to in the test. Change your computer's clock to any other time ...

Added Ruby 1.8 implementation of Proc... was committed by Repository at 4:22 PM
Added OrderedHash#delete [#113 state:... was committed by Repository at 4:04 PM
113 Delete() for OrderedHash to work like a Hash (not Array) was updated
  • Repository
    • State changed from new to resolved
    by Repository at 4:04 PM

    (from [d75525b045b9f27ed108912a6dbdbad5ab775045]) Added OrderedHash#delete [#113 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.com/rails/rails/co...

  • Sean Ouimet
    Sean Ouimet created the ticket at 11:31 AM

    When using delete() on an OrderedHash a user would expect the command to work more like a Hash versus an Array. The deleted key should return the 'hash' value....

114 Namespaced models and STI was created
  • Rodrigo Kochenburger
    Rodrigo Kochenburger created the ticket at 3:41 PM

    When using namespaced models and STI, ActiveRecord stores the demodulized name of the class. This work if all the class in the STI hierarchy are in the same na...

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

    Good call. You could even just re-use IllegalMigrationNameError here, since it's essentially illegal to reuse a migration name. :)

  • Aslak Hellesøy
    Aslak Hellesøy created the ticket at 10:15 AM

    In Rails 1.2.3 (and trunk), if two migrations have the same name (but different versions), the latter will shadow the former, resulting in former migrations no...

106 authenticity_token appears in URLs after AJAX GET request was updated
  • James Le Cuirot
    James Le Cuirot commented at 12:35 PM

    I'm still very new to git and while I understand the concept, it still confuses the hell out of me. However, from what I can see "am" is for merging patches fr...

  • Sean Ouimet
    Sean Ouimet commented at 12:22 PM

    $ git am < ~/Desktop/authenticity-token-ajax-get.diff

    Patch does not have a valid e-mail address.

  • James Le Cuirot
    James Le Cuirot commented at 12:17 PM

    Not sure what you mean but if you need my address, it's chewi@aura-online.co.uk.

  • Sean Ouimet
    Sean Ouimet commented at 12:08 PM

    +1 ... had some code already close to doing this. did a before and after with applying this change and it is confirmed to remove the unnecessary token

    The onl...

111 Default path names ignored was updated
  • Markús
    Markús commented at 9:05 AM

    I've created a new patch with a new test reflecting the bug I've found and ensuring the correct use of ActionController::Base.resources_path_names. I've follow...

107 Level hooks for validations was updated
  • Adam Meehan
    Adam Meehan commented at 8:26 AM

    Your right it does sound more natural. Perhaps just leave the level singular and when a plural symbol is passed to the errors method as per Josh's suggestion t...

  • Michael Schuerig
    Michael Schuerig commented at 7:18 AM

    Using :error instead of :errors to designate the level was deliberate. To me :level => :error, :level => :warning, sound more natural and more in line with log...

  • Adam Meehan
    Adam Meehan commented at 2:19 AM

    Actually a cleaner solution than my first is to just add

    :level => :errors

    in the default configuration hash for each validation method. No need for an extra...

  • Adam Meehan
    Adam Meehan commented at 1:56 AM

    Ok, I didn't see any use of the level variable outside of the validates_each block in your patch, with the exception of 'validates_presence_of'.

    My example is...

  • Michael Schuerig
    Michael Schuerig commented at 1:01 AM

    Josh, Koz: I'm fine with

    def errors(level = nil)
      level ||= :errors
      ...
    

    Adam: I understand your DRY intention, but not how it's going to work. level is...

102 Add db:console tasks was updated
  • Stefan Kaes
    Stefan Kaes commented at 7:45 AM

    +1. I use this all the time.

Preload TimeZone zones for thread saf... was committed by Repository at 3:55 AM
Replaced unnecessary class variable w... was committed by Repository at 3:55 AM
Sunday, May 04 2008
107 Level hooks for validations was updated
  • Adam Meehan
    Adam Meehan commented at 11:46 PM

    Sorry wrong formatting.

    I think I would find this useful also.

    To DRY it up a little could you not put the level extraction into the validates_each block abo...

  • Adam Meehan
    Adam Meehan commented at 11:43 PM

    I think I would find this useful also.

    To DRY it up a little could you not put the level extraction into the validates_each block above the loop so you only n...

  • Michael Koziarski
    • Assigned user set to Michael Koziarski
    by Michael Koziarski at 11:12 PM

    errors(nil) certainly seems like a reasonable approach, do you have any thoughts michael?

111 Default path names ignored was updated
  • Markús
    Markús commented at 11:29 PM

    Well Michael, I think this little change do not need a indiviual test case in the rails tests. This change is a refactoring, not an addition of features. As yo...

  • Michael Koziarski
    • Milestone set to 2.1.1
    by Michael Koziarski at 10:58 PM

    Could you include a test case too please? otherwise we run the risk of breaking it again.

    Also if you follow the guide here it'll make it easier to get your ...

  • Markús
    Markús created the ticket at 10:10 PM

    In changes 063c393bf0a2eb762770c97f925b7c2867361ad4 and e6a3ce3392812f707b78d64ffb04ee52f4517d20 a condition in map_member_action make Base.resources_path_name...

22 default_url_options is being ignored by named route optimisation was updated
  • Michael Koziarski
    • Milestone set to 2.1.1
    • State changed from resolved to open
    • Assigned user set to Michael Koziarski
    by Michael Koziarski at 10:52 PM

    I'll get to this today.

  • Ian White
    Ian White commented at 8:24 PM

    Actually I see that Cheah Chu Yeow's patch doesn't include a regression test, so it might be useful to use the diff I attached for that.

  • Ian White
    Ian White commented at 8:22 PM

    apostrophe man commin to get me... I wish I could edit lighthouse comments

  • Ian White
    Ian White commented at 8:20 PM

    Does this need to re-opened as a new ticket? I notice that it's status is 'resolved'.

110 [PATCH] Scan custom select to ensure included tables are joined was updated
  • John Devine
    John Devine commented at 8:11 PM

    added test

  • John Devine
    John Devine created the ticket at 8:11 PM

    Came across this when using GeoKit to inject a derived distance attribute into an active record when the distance was calculated by the lat/lon of an associate...