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)

Friday, May 16 2008
Fixing test for named_scope through a... was committed by Repository at 1:57 AM
190 Small named_scope_test.rb fix was updated
  • Repository
    • State changed from open to resolved
    by Repository at 1:57 AM

    (from [5a3fd46d42f05a241b3178af60d38fe5e0cebee6]) Fixing test for named_scope through a has_many :through

    The test that checks if a has_many :through associat...

  • Rick
    Rick commented at 1:54 AM

    How'd it fail? It seems like an array of posts should never equal a scoped array of comments.

Thursday, May 15 2008
205 Rescue handlers should only run for non-local requests was created
  • David Yeu
    David Yeu created the ticket at 10:57 PM

    The new rescue_from declarative handlers run in every mode. Since they're usually pimped as a replacement for rescue_action_in_public, I think they should act...

195 Convenience methods for time zones outside the U.S. was updated
  • Bryce
    Bryce commented at 10:26 PM

    Maybe we could stick with continents, i.e europe_zones, asia_zones, australian_zones, african_zones, south_american_zones, north_american_zones (because there'...

  • Martin Eisenhardt
    Martin Eisenhardt commented at 4:25 PM

    Hi Geoff,

    ad 1.) I agree that a Pacific time zone group is probably nothing that will be used very much. I do see much uses for european_zones or asian_zones....

  • Geoff Buesing
    Geoff Buesing commented at 3:14 PM

    1. If we're to add more convenience methods for grouping time zones, we need to justify each one we add: it should address a common, real-world application nee...

  • Pratik
    • Assigned user set to Geoff Buesing
    by Pratik at 11:35 AM
  • Martin Eisenhardt
    Martin Eisenhardt commented at 10:24 AM

    Hello Star Trader,

    thank you for the review and valuable input. I do agree that further discussion as to which time zones shall be grouped together is necessa...

204 serialized :attribute fails when specified in STI subclass was updated
  • Pratik
    • Assigned user set to Michael Koziarski
    by Pratik at 10:03 PM
  • Wes
    Wes created the ticket at 10:00 PM

    When using STI, if a subclass specifies that an attribute is to be serialized, and that attribute was not specified as serialized in the base class, serializat...

201 Process schema_migrations inserts individually during rake db:test:clone_stru... was updated
  • Rick DeNatale
    Rick DeNatale commented at 8:23 PM

    Actually, it might not just be a case of the chunk being too big, but that the execute method expects a single sql statement, which makes this a bit more criti...

203 Added fragment_exist? method was updated
  • Tobias Lütke
    Tobias Lütke commented at 7:34 PM

    Looks good, i'm inclined to apply the patch.

    Can you guys add me to the rails project?

  • José Valim
    José Valim created the ticket at 12:04 PM

    Added fragment_exist? method.

    This is most useful when using file_store cause You reduce the IO operations. And it's better then doing:

    read_fragment(path).n...
189 ActiveRecord::AssociationTypeMismatch with same class name -- added helpful e... was updated
  • Rick
    • State changed from invalid to open
    by Rick at 7:23 PM

    I don't like the error message itself. I'd personally go with Jeremy's suggestion of showing the object_ids of the two differing classes, with a note in the h...

199 Use lazy evalution and caching for us_zones in TimeZones was updated
  • Martin Eisenhardt
    Martin Eisenhardt commented at 3:34 PM

    Hi Joshua,

    thank you for the advice. It is the same I had in mind. Together with this comment, I upload an updated patch the pre-computes a US_ZONES constant,...

  • Repository
    • State changed from new to resolved
    by Repository at 3:23 PM

    (from [fc02eabf296d6edb74a95174c7322293a54c9492]) Precompute TimeZone.us_zones [#199 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.com/rails/rail...

  • josh
    josh commented at 3:15 PM

    I'd compute on load them right under "ZONES" and put them in a frozen constant "US_ZONES".

  • Martin Eisenhardt
    Martin Eisenhardt commented at 2:55 PM

    While regular expressions are by far the fastest way to search for patterns, they nevertheless are slow compared to using pre-computed values.

    I really do lik...

  • Geoff Buesing
    Geoff Buesing commented at 2:45 PM

    It's probably also worth exploring, is the current method of matching against a regex really all that slow? Maybe a quick benchmark would help justify your eff...

3 earlier changes…
  • Geoff Buesing
    Geoff Buesing commented at 2:32 PM

    If we're going to preload us_zones, we need to make it thread-safe -- see TimeZone.all for an example of how to do this, if you're interested in updating this ...

  • Martin Eisenhardt
    Martin Eisenhardt commented at 12:02 PM

    Hi Pratik, thank you for your review and comment.

    Ad 1.) OK, I can understand that this does not meet your personal coding standard, or the coding standard of...

  • Pratik
    • Assigned user set to Geoff Buesing
    by Pratik at 11:38 AM

    1. I don't like @ALL_CAPS var names.

    2. What are the performance benefits of this ?

Precompute TimeZone.us_zones [#199 st... was committed by Repository at 3:23 PM
202 Include TimeZone shortcuts other than #us_zone was updated
  • Geoff Buesing
    • State changed from new to invalid
    by Geoff Buesing at 2:34 PM

    There's already a ticket for this:

    http://rails.lighthouseapp.com/p...

  • Bryce
    Bryce created the ticket at 8:52 AM

    Whilst I support the addition of the Time#us_zone functionality, it should be expanded to include other areas, possibly; #euro_zone #asia_zone etc

Make sure needed table joins are incl... was committed by Repository at 1:50 PM
110 Scan custom select to ensure included tables are joined was updated
  • Repository
    • State changed from new to resolved
    by Repository at 1:50 PM

    (from [b28b54cab090bed8f099ef375b419a8f92390dd4]) Make sure needed table joins are included :select option. [#110 state:resolved]

    Signed-off-by: Pratik Naik

    ...

DRY associations code and improve eag... was committed by Repository at 1:50 PM
106 authenticity_token appears in URLs after AJAX GET request was updated
  • James Le Cuirot
    James Le Cuirot commented at 11:24 AM

    Ah I was looking at prototype_helper_test.rb. The thing is there is currently no test to check whether remote_function DOES add the token for non-GET requests ...

200 Rails console: Special Characters not working was updated
  • Jeremy Kemper
    • State changed from invalid to incomplete
    by Jeremy Kemper at 6:58 AM

    Ok, how about a patch to check for Windows and add the --noreadline option only in that case?

  • Jeremy Kemper
    • State changed from new to invalid
    by Jeremy Kemper at 2:06 AM

    Then command history won't work. This sounds like a problem with your readline install, not the console.

Adding an example test case for plura... was committed by Repository at 3:17 AM
Wednesday, May 14 2008
201 Process schema_migrations inserts individually during rake db:test:clone_stru... was created
  • Rick DeNatale
    Rick DeNatale created the ticket at 11:07 PM

    I've spent a few hours today trying to move our rails app to 2.1RC1.

    Our company has a significant number of migrations most of which were done using the enha...

195 Convenience methods for time zones outside the U.S. was updated
  • Star Trader
    Star Trader commented at 10:43 PM

    I agree with the stated purpose of the ticket, but I'm dubious of the patch. The regular expressions given in the convince methods seem to return more results...

189 ActiveRecord::AssociationTypeMismatch with same class name -- added helpful e... was updated
  • Star Trader
    Star Trader commented at 10:29 PM

    +1

    This is a needed clarification of an otherwise nonsense error message. It installs properly and works as advertised. I found no bugs or performance issue...

  • Jeremy McAnally
    Jeremy McAnally commented at 9:35 PM

    I'm not sure why it's just showing the class name rather than something like "expected User (), got User (#343e4>)." It'd be trivial to add a call to #inspect...

200 Rails console: Special Characters not working was created
  • brot15
    brot15 created the ticket at 9:54 PM
    • script/console is not usable under Windows with german keyboard. It's not even possible to write simple special characters like [].
    • Rails console on Netbeans ...
190 Small named_scope_test.rb fix was updated
  • josh
    josh commented at 9:03 PM

    Maybe, I should of clarified what db. I tested on sqlite 3.4 and mysql 5.0.51a.

198 caches_action with :layout option was updated
  • josh
    • Milestone set to 2.x
    • State changed from new to open
    • Assigned user set to josh
    by josh at 8:47 PM

    Briefly checked it out, looks good. However, its going be post-2.1, sorry.

    In the meantime, check out http://rails.lighthouseapp.com/p..., and try to reformat...

Don't fallback to just adding "'s" in... was committed by Repository at 8:34 PM
One last fix to test_filter_parameter... was committed by Repository at 8:14 PM
Prefer string core_ext inflector meth... was committed by Repository at 8:10 PM
Clean up previously commited test. ht... was committed by Repository at 7:55 PM
199 Use lazy evalution and caching for us_zones in TimeZones was created
  • Martin Eisenhardt
    Martin Eisenhardt created the ticket at 7:45 PM

    The us_zones convenience method in TimeZone generates the list of TimeZone objects in the U.S. every time it is called. This is inefficient, especially in appl...

Improve test coverage for filter_para... was committed by Repository at 7:38 PM
Protect #filter_parameters created by... was committed by Repository at 7:01 PM
196 filter_parameter_logging creates a public controller method was updated
  • Repository
    • State changed from open to resolved
    by Repository at 7:01 PM

    (from [8d37bd08eeac6d0e94f76ac6640e288bf64595b2]) Protect #filter_parameters created by filter_parameter_logging [José Valim] [#196 state:resolved]

    http://git...

  • josh
    • Milestone set to 2.1.1
    • State changed from new to open
    • Assigned user set to josh
    • Title changed from [BUG] [PATCH] filter_parameter_logging creates a public controller method to filter_parameter_logging creates a public controller method
    by josh at 7:01 PM

    If you use git format patch, I can get your name and email from it so you show up as the patch author.

197 SQLiteAdapter fails with a dark message when creating columns when inside a t... was updated