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 21 2008
120 [PATCH] ActiveRecord calculations only accept one grouping field was updated
  • Pratik
    Pratik commented at 10:17 AM

    Hey Eric,

    My bad. I never knew about :having ! Thanks for the enlightenment :)

    I still feel the patch is a bit too complex and a better fit for a plugin. Why...

  • Eric
    Eric commented at 1:56 AM

    I just noticed there was a needless change of how the elements were being added to the ActiveSupport::OrderedHash.

  • Eric
    • Title changed from ActiveRecord calculations only accept one grouping field to [PATCH] ActiveRecord calculations only accept one grouping field
    by Eric at 1:43 AM

    This updated patch causes keys that were grouped by to be part of a single array. So, for instance, the call:

      c = Account.count(1, :group => [:credit_limit,...
144 [PATCH] Bug in Rails Route Globbing was updated
  • Andrew White
    Andrew White commented at 10:00 AM

    I'm not to fussed about it since I can work around it using the

    following helper:

    def theme_path(theme, type, filename)

    super(theme, type, filename.split('/...

  • Chris Roos
    Chris Roos commented at 9:33 AM

    Personally, I'd probably avoid adding a special case with the defence that the added complexity isn't warranted. In my opinion, supplying the path components ...

  • Michael Koziarski
    • State changed from resolved to open
    by Michael Koziarski at 12:39 AM

    I'm not sure what I think about that string special case, but at the very least we should document this new behaviour in the release notes.

    Can you see any do...

  • Andrew White
    Andrew White commented at 12:26 AM

    (Second attempt without crazy blockquote formatting)

    Unfortunately this patch now forces me to pass path segments as arrays to url helper functions, e.g:

    map...

  • Andrew White
    Andrew White commented at 12:19 AM

    Unfortunately this patch now forces me to pass path segments as arrays to url helper functions, e.g:

    map.theme 'themes/:theme/:type/*file',

    :contr...

228 Add add_counter_cache_column to ActiveRecord migrations was updated
  • Guillermo Álvarez
    Guillermo Álvarez commented at 7:44 AM

    @Ryan_Bates with something like these

    change_table :users do |u|

    u.add_couter :posts

    end

    So you don't have to learn more methods name, because we will use ...

  • Ryan Bates
    Ryan Bates commented at 12:19 AM

    @Guillermo, interesting idea, but then how would one add the cache column if the post_id column already exists in comments table?

    Since caching usually happen...

Contributing to Rails was edited by Michael Koziarski in Ruby on Rails at 3:38 AM
229 raise_on_type_mismatch : expected User, got User was updated
  • Roger
    Roger commented at 3:00 AM

    add me as a user wishing this patch were applied.

  • Lawrence Pit
    Lawrence Pit created the ticket at 2:49 AM

    This issue is more than a year old and already extensively discussed at http://dev.rubyonrails.org/ticke....

    Basically: when you have a model that has an asso...

Tuesday, May 20 2008
120 ActiveRecord calculations only accept one grouping field was updated
  • Eric
    Eric commented at 11:50 PM

    I just noticed, it looks like ActiveRecord already has support for :having.

    http://github.com/rails/rails/se...

    Is this not what you need?

  • Eric
    Eric commented at 11:28 PM

    So you're mostly looking for someone to add :having to find?

    I found that the way the results were returned (in nested arrays) for the keys that were grouped ...

228 Add add_counter_cache_column to ActiveRecord migrations was updated
  • Guillermo Álvarez
    Guillermo Álvarez commented at 11:29 PM

    I think it could be cleaner something like these

    t.references :post, :couter=> true

    like we already do with for example null or polymorphic

  • Lawrence Pit
    Lawrence Pit commented at 10:52 PM

    +1 for adding t.counter_cache.

    About the loop: if there are millions of rows to be updated then the proposed code is too slow. The counter cache column can be...

  • Ryan Bates
    Ryan Bates commented at 10:00 PM

    Nice. Would it fit to have a "t.counter_cache" method for use in create_table and change_table as well?

  • Damian Janowski
    Damian Janowski created the ticket at 9:17 PM

    This method makes it straightforward to add new columns to work with :counter_cache on ActiveRecord models. Apart from adding the column (default 0), it will u...

150 Bug in dirty record code was updated
227 complex versions in config.gem fails was created
  • jeff
    jeff created the ticket at 7:54 PM

    adding something like:

    config.gem "json", :version => ['>= 1.1.2', '< 1.1.3']

    in environment.rb fails with: Illformed requirement [">= 1.1.2, < 1.1.3"]

    pat...

94 quote_string don't work with some postgres drivers was updated
  • Pratik
    • State changed from new to incomplete
    by Pratik at 6:57 PM

    Can you please provide with more informations to reproduce this ?

    Thanks.

148 ActionMailer URL generation uses host/port from request was updated
  • Pratik
    • State changed from new to invalid
    by Pratik at 6:55 PM

    I don't like the way the patch does UrlWriter.set_default_url_options_from_request(request). We've been trying to remove such changes which requires a mutex ar...

191 Belongs to polymorphic association assignment with new records doesn't update... was updated
  • Rick
    • State changed from new to open
    by Rick at 6:40 PM
  • Rick
    • Milestone cleared.
    • State changed from open to new
    • Title changed from Belongs to polymorphic association assignment with new_records doesn't update to Belongs to polymorphic association assignment with new records doesn't update foreign id or type
    by Rick at 6:39 PM
223 named_scope that composes other named_scopes was updated
  • Ryan Bates
    Ryan Bates commented at 6:15 PM

    That's a pretty cool idea. It's similar to ticket #57.

    I'm wondering if the :include option might be a good spot for this. Currently it's just used to manage ...

142 belongs_to association not updated when assigning to foreign key was updated
  • mattwestcott
    mattwestcott commented at 2:57 PM

    My motivation for this was being able to assign city_id in a mass assignment from a form post, and therefore avoid having to explicitly handle City objects in ...

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

    Not a big fan of this change. If you want the association to change, you should just assign the value using torchbox.city=. And this wouldn't work when you ass...

107 Level hooks for validations was updated
  • Michael Schuerig
    Michael Schuerig commented at 1:45 PM

    I already send a message to rails-core on 2008-05-03, even before writing the patch. Koz advised me to write a patch and so I did.

    Regarding ActiveModel: Yes,...

  • Pratik
    Pratik commented at 1:31 PM

    Removing "patch" keyword.

    Also, I think it's worth noting that very soon we'll be moving validation stuff to ActiveModel, which already has some API changes. ...

195 Convenience methods for time zones outside the U.S. was updated
  • Pratik
    Pratik commented at 12:58 PM

    Removing "patch" tag.

226 Use SQL for first and last on association proxy was updated
  • Pratik
    • State changed from new to resolved
    by Pratik at 12:29 PM
  • Jeremy Kemper
    • Milestone set to 2.1.1
    • Assigned user set to Jeremy Kemper
    by Jeremy Kemper at 3:24 AM

    Hey Ryan, looks good but the patch doesn't apply cleanly to latest master. Could you update?

24 Prevent Dependencies.new_constants_in cleanup code masking real error when co... was updated
Ensure add_column gives valid error f... was committed by Repository at 11:14 AM
197 SQLiteAdapter fails with a dark message when creating columns when inside a t... was updated
  • Repository
    • State changed from incomplete to resolved
    by Repository at 11:14 AM

    (from [089251581137b041828a7e6dcbf75ecbef55b4a3]) Ensure add_column gives valid error for sqlite. [Gunnar Wolf, Pratik] [#197 state:resolved]

    SQLite#add_colum...

123 Fix to_xml serialization in some rare cases. was updated
  • Pratik
    • Assigned user set to Pratik
    by Pratik at 10:33 AM
  • Pratik
    Pratik commented at 10:33 AM

    Adam, we don't have a strict set of rules for tests. If you think it's worth creating a new file for tests, go for it. If you think they're a better fit for so...

  • Adam Sindelar
    Adam Sindelar commented at 10:11 AM

    Hi again,

    Firstly, sorry that I took this long to get back to this ticket, I needed to work on a different project for the past week or so.

    Secondly, I've ma...

108 [PATCH] change_table cleanup was updated
  • Pratik
    • State changed from incomplete to resolved
    by Pratik at 8:57 AM
  • Matthew Boehlig
    Matthew Boehlig commented at 6:46 AM

    My change_table doc cleanup in docrails got merged in commit 46f30f90 so this ticket can be marked as resolved.

- Updated tzinfo to use Rational() in... was committed by Repository at 3:13 AM
Don't rely on association proxying ob... was committed by Repository at 3:13 AM
225 Ruby 1.9 Compat: Redefining object_id and Rational.new! was updated
Bundle tmail 1.2.3 http://github.com/... was committed by Repository at 3:05 AM
Ruby 1.9 compat: ensure binary encodi... was committed by Repository at 12:26 AM
Monday, May 19 2008
169 Updating additional data fields in has and belongs to many relationship was updated
  • Frederick Cheung
    Frederick Cheung commented at 10:34 PM

    Shouldn't you be using has_many :through if you want your join table to be more than just a join table (PS: a word document? Srsly? :-) )

226 Use SQL for first and last on association proxy was created
  • Ryan Bates
    Ryan Bates created the ticket at 9:56 PM

    We have support for first/last methods on a model class:

    Project.first
    Project.last(:order => 'name')
    

    Wouldn't it be nice if this worked on association pro...

Ruby 1.9 compat: qualify module name ... was committed by Repository at 8:58 PM