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, May 04 2008
107 Level hooks for validations was updated
  • Josh Susser
    Josh Susser commented at 8:01 PM

    I think I'd find this useful, though please don't build your API around a meta send, it's not really unnecessary and adds overhead. It's just as easy to imple...

  • Michael Schuerig
    Michael Schuerig created the ticket at 12:02 PM

    This patch adds a :level option to validations. When a validation fails, it adds its failure notice to the Errors object indicated by the level. At this time ...

109 [patch] Ensure necessary included tables are joined in construct_finder_sql_f... was created
  • John Devine
    John Devine created the ticket at 7:25 PM

    Currently selecting limited ids for eager loading associations is broken when there is a condition or an order-by based on a table that is not directly joined ...

108 [PATCH] change_table cleanup was created
22 default_url_options is being ignored by named route optimisation was updated
  • Ian White
    Ian White commented at 5:25 PM

    No worries, uploaded my test patch without seeing Cheah Chu Yeow's updates updates on this ticket, you can just ignore it

  • Ian White
    Ian White commented at 5:23 PM

    Here's a testcase that fails on 6a6b43 but passes on the previous commit 437f918

    (you have to paste the test into 437f918- the diff doesn't apply)

  • Cheah Chu Yeow
    Cheah Chu Yeow commented at 5:00 PM

    Btw, now I'm more convinced that default_url_options does need some cleaning up/re-thinking!

  • Cheah Chu Yeow
    Cheah Chu Yeow commented at 4:59 PM

    Ack I see why that's a problem (and why it wasn't covered by existing tests nor my test in the applied patch) - default_url_options takes a single argument in ...

  • Ian White
    Ian White commented at 4:27 PM

    Since this commit, all of my named_routes are failing with

    ArgumentError: wrong number of arguments (1 for 0)
            from (eval):2:in `default_url_options'
    
    ...
5 earlier changes…
  • Michael Koziarski
    Michael Koziarski commented at 5:41 AM

    We definitely need something else which is like default_url_options, which is why we haven't removed it yet :).

  • Deepak Jois
    Deepak Jois commented at 5:33 AM

    Thanks for applying the patch.

    I agree with Daniel. I found the default_url_options quite useful for my app where I had to redirect from a subdomain to the ma...

  • Daniel Guettler
    Daniel Guettler commented at 2:04 AM

    Hmm, pity to see it go. I found it useful in cases where you want to add some parameters to the urls based on if some methods on a controller return a value or...

  • Michael Koziarski
    Michael Koziarski commented at 1:51 AM

    For the next major release we will probably deprecate / remove default_url_options. But in the meantime nice patch.

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

    (from [6a6b4392c16c665eb713705f2b38e959a658eeef]) Ensure that default_url_options, if defined, are used in named routes.

    Signed-off-by: Michael Koziarski

    [#...

21 db:structure:dump broken by 8a5a9dc was updated
  • Jordi Bunster
    Jordi Bunster commented at 3:18 PM

    It's Sunday morning, and you sit down to work on Rails patches ... but then you see someone else has done the work for you. Life is good.

    Thanks Kyle!

  • Kyle Hargraves
    Kyle Hargraves commented at 7:52 AM

    Steven's patch was sufficient to fix db:test:clone_structure, the only thing I use db:structure:dump for, but Jordi is right that it would produce databases th...

  • Michael Koziarski
    Michael Koziarski commented at 1:12 AM

    So has Steven's attached patch fixed the issue for you guys?

106 authenticity_token appears in URLs after AJAX GET request was created
  • James Le Cuirot
    James Le Cuirot created the ticket at 12:00 PM

    If you create an AJAX request via remote_function and specify GET as the method, the authenticity_token parameter is added even though it isn't needed. Consequ...

102 Add db:console tasks was updated
  • Steve Purcell
    Steve Purcell commented at 11:56 AM

    Fair enough. I like the convenience of being able to execute the command from any working directory in my rails project, but nonetheless, here's a patch that ...

  • Jeremy Kemper
    Jeremy Kemper commented at 12:46 AM

    I'd use a script instead of a rake task. Here's the script/mysql I add to most apps:

    #!/usr/bin/env ruby
    require 'yaml'
    
    configs = YAML.load_file("#{File.d...
57 :through option for "named_scope" was updated
  • MatthewRudy
    MatthewRudy commented at 11:32 AM

    proper testing, bit of documentation.

    will do one more bit of testing later.

63 [BUG] rake db:create and observers was updated
  • Ian White
    Ian White commented at 10:20 AM

    Even simpler: rescue the bootstrapping tasks' db loading

    Given that this is an edge case (trying to load up framework when db

    doesn't yet exist), it makes se...

  • Ian White
    Ian White commented at 10:09 AM

    Well, a really trivial 'fix' is to just rescue observer instantiation, and log the error (patch given on right)

    Given that this is a bootstrapping dependency ...

  • Michael Koziarski
    Michael Koziarski commented at 9:44 AM

    So it's trying to generate the finder sql for your has_many association, and needs the database connection in order to quote the sql,

    I'm not sure how easy th...

  • Ian White
    Ian White commented at 9:39 AM

    Stack trace below

    I've attached a git diff of what I had to add to a fresh rails app (6a6b439 Sun Apr 20 12:57:36 2008 +0800) to get the problem to occur.

    I'...

  • Michael Koziarski
    • Assigned user set to Michael Koziarski
    by Michael Koziarski at 1:47 AM
1 earlier change…
  • Michael Koziarski
    Michael Koziarski commented at 1:47 AM

    Can you post a stack trace by using rake --trace.

103 Lighthouse Rake Tools was updated
  • Chad Woolley
    Chad Woolley commented at 6:20 AM

    Yes, this looks nice. Please release it.

  • Michael Koziarski
    • State changed from new to resolved
    by Michael Koziarski at 2:51 AM

    This definitely shouldn't be in the core rails framework yet. But please release it as a gem.

    This is similar to tpope's git-trac, perhaps you guys could co...

  • Scott Chacon
    Scott Chacon created the ticket at 2:23 AM

    I created a set of Rake tasks based on the new patch description posted by Koz.

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

    This patch adds a 'tasks' subdir for rail...

105 Assigning strings with timezone information to timezone aware attributes stri... was created
  • Scott Fleckenstein
    Scott Fleckenstein created the ticket at 6:01 AM

    For example, say you have a model User with a column banned_at:

    @user.banned_at = Time.zone.now   # => Sat, 03 May 2008 21:55:45 PDT -07:00
    time_string = @us...
73 SECURITY BUG - Request Forgery protection checks for 'Accept' header instead ... was updated
  • DHH
    • Assigned user set to Rick
    by DHH at 4:52 AM
86 PostgreSQL: Use adapter's #create_database db:test:purge was updated
  • Pete Deffendol
    Pete Deffendol commented at 4:49 AM

    The patch referenced here has been rolled into #42 by request.

42 PostgreSQL: Use all config options in rake db:create and db:test:purge was updated
  • Pete Deffendol
    • Title changed from PostgreSQL: Use all config options in rake db:create to PostgreSQL: Use all config options in rake db:create and db:test:purge
    by Pete Deffendol at 4:46 AM

    Alright, attaching a new patch that will handle both this ticket and that described in #86.

  • Michael Koziarski
    Michael Koziarski commented at 1:18 AM

    We do generally prefer seperate patches, but with the new git patch methods ( http://rails.lighthouseapp.com/p... ) it's a lot easier.

    If you want to tie all ...

104 Fix blank conditions with find on AssociationCollection was updated
  • Jonathan Viney
    Jonathan Viney commented at 4:07 AM

    Here's the patch.

  • Jonathan Viney
    Jonathan Viney created the ticket at 4:06 AM

    Passing blank conditions straight to ActiveRecord::Base.find works as expected, no conditions are added to the sql. The same is not true when calling find on a...

Ensure that default_url_options, if d... was committed by Repository at 1:50 AM
Allow custom loggers to work with scr... was committed by Repository at 1:33 AM
82 Iterate over :has_many array with the join (:through) model was updated
  • Michael Koziarski
    Michael Koziarski commented at 1:25 AM

    I certainly can see cases where this is required, but I'm just not convinced that it justifies a new method for us to have to maintain on an ongoing basis.

    If...

PostgreSQL: Connect to template1 data... was committed by Repository at 1:21 AM
38 PostgreSQL: use template1 database on rake:db_(create|drop) was updated
  • Repository
    • State changed from open to resolved
    by Repository at 1:21 AM

    (from [205750c8dead2449a23173fab0720b7701231d2a]) PostgreSQL: Connect to template1 database when creating or dropping db

    • The template1 database is always ava...
Saturday, May 03 2008
Contributing to Rails was edited by Michael Koziarski in Ruby on Rails at 11:45 PM
102 Add db:console tasks was updated
  • Ben Nolan
    Ben Nolan commented at 11:07 PM

    I use this regularly. If it's a small patch I'd love having it in core.

  • Gravis
    Gravis commented at 9:59 PM

    nice one. +1

  • alpinegizmo
    alpinegizmo commented at 8:52 PM

    This is one of those great little improvements that makes sense instantly, and you use several times a day. It's especially sweet when your project has lots of...

  • Steve Purcell
    Steve Purcell created the ticket at 8:33 PM

    There's no handy database analog of "script/console"; this patch addresses this by adding Rake tasks for quickly connecting to each defined database with its s...

Added change_table for migrations (Je... was committed by Repository at 5:30 PM
71 [patch] change_table block was updated
91 STI sub classes not loaded until parent is was updated
  • DHH
    • State changed from new to resolved
    by DHH at 5:03 PM

    Auto-loading only works when each class is in its own file. If you want to keep all the files in one, you can always force the load with require_dependency 'co...