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, April 29 2008
Default integer need not specify a li... was committed by Repository at 10:44 PM
49 add has_element? method to models with has_many/through associations was updated
  • DHH
    DHH commented at 10:27 PM

    I don't think I understand the difference between alex.friends.include?(josh) and alex.has_friend?(josh)? (now that the include? call has been optimized to not...

  • duncanbeevers
    duncanbeevers commented at 8:01 PM

    Instead of invoking find_by_id and instantiating a new model, could you instead rely on the optimized include? association method?

    http://dev.rubyonrails.org/...

51 Gem dependencies can be listed in config/gems.yml was updated
  • DHH
    • State changed from new to invalid
    by DHH at 10:22 PM

    Good stuff, but I don't think it belongs in core. There are not enough compelling reasons to specify your dependencies in a yml file for the general "most peop...

Add missing clear method to memory_st... was committed by Repository at 9:34 PM
64 eager loading inconsistency was updated
  • Trevor Squires
    Trevor Squires commented at 8:39 PM

    Darn...

    typos in there, meant to say Post.find(:first) rather than Post.find(:all) everywhere.

  • Trevor Squires
    Trevor Squires created the ticket at 8:34 PM

    Eager loading a has_one with :order is not consistent.

    Post.has_many :comments

    Post.has_one :latest_comment, :class_name => 'Comment', :order => 'created_at ...

Allow access to mem_cache_store's sta... was committed by Repository at 8:28 PM
62 Add in place versions of compact, uniq, flatten to Array.prototype was updated
  • matthuhiggins
    matthuhiggins commented at 8:28 PM

    I added this ticket over at prototype.lighthouse. I do not have privileges to close this one.

  • Frederick Cheung
    Frederick Cheung commented at 7:42 PM

    This should be on the prototype light house (http://prototype.lighthouseapp.com/)

  • matthuhiggins
    matthuhiggins created the ticket at 7:13 PM

    Given that prototype is modeled after Ruby, it seems like the in place '!' versions of these functions are missing. Since Array.prototype.reverse already takes...

Implement increment/decrement on cach... was committed by Repository at 8:13 PM
63 [BUG] rake db:create and observers was created
  • Ian White
    Ian White created the ticket at 7:29 PM

    If you have an observer, then doing rake db:create in some circumstances (one is described below) causes rail to die with 'unknown database'.

    Obviously a circ...

24 Prevent Dependencies.new_constants_in cleanup code masking real error when co... was updated
Note that allow_concurrency = true me... was committed by Repository at 6:11 AM
Clarify confusing ActionController::B... was committed by Repository at 6:11 AM
61 render :partial => @collection.named_scope was created
  • luke (at mudbugmedia)
    luke (at mudbugmedia) created the ticket at 1:08 AM

    When I tried to use render :partial => @collection.active (active being a named_scope) I got the following error:

    Couldn't find template file for active_recor...

Monday, April 28 2008
57 :through option for "named_scope" was updated
  • MatthewRudy
    • Assigned user set to Pratik
    by MatthewRudy at 10:24 PM
  • MatthewRudy
    MatthewRudy commented at 12:00 AM

    ==============

    from the patch

    ==============

    Subject: [PATCH] adding :through option to "named_scope"

    named_scope is a welcome addition to rails core,

    and...

run prepare callbacks after after_ini... was committed by Repository at 8:03 PM
Let Base.all use conditions etc like ... was committed by Repository at 7:29 PM
Merge branch 'master' of git@github.c... was committed by Repository at 7:29 PM
Ruby 1.9 compat: force assert_select ... was committed by Repository at 6:53 PM
60 have_tag/assert_select does not validate XML with periods in attribute names was created
  • T.J. VanSlyke
    T.J. VanSlyke created the ticket at 5:25 PM

    While creating specs for a method to generate valid GraphML, I needed to use attributes with periods ('.') in their names (i.e. ''). However, as it stands, as...

59 When loading a plugin via rubygems, rake tasks aren't included was updated
  • Frederick Cheung
    Frederick Cheung commented at 5:05 PM

    In fact there's no provision for it doing anything but plugins in vendor/rails (eg if you have plugins in a non standard directory)

  • James Healy
    James Healy created the ticket at 4:59 PM

    As a test, I converted one of my plugins to a gem and gave it a rails/init.rb file.

    The plugin itself loads fine (very sweet feature BTW), however the extra t...

49 add has_element? method to models with has_many/through associations was updated
  • Josh Susser
    Josh Susser commented at 4:06 PM

    Attaching new patch - previous one was missing a test case.

Revert alias_method_chain exceptions ... was committed by Repository at 5:54 AM
Make alias_method_chain complain abou... was committed by Repository at 5:25 AM
54 render :template doesn't work was updated
  • DHH
    • Milestone set to 2.1.1
    by DHH at 4:55 AM
58 @action_name and friends were not deprecated before removal was updated
  • DHH
    DHH commented at 4:52 AM

    @logger seems to have gone missing too

  • DHH
    DHH created the ticket at 4:42 AM

    We should make sure to deprecate @action_name and the rest of the ivars that were removed in http://github.com/rails/rails/co... for Rails 2.0.x. I stumbled ov...

Fixed that BenchmarkHelper should use... was committed by Repository at 4:46 AM
Added ActionController::TestCase#resc... was committed by Repository at 1:42 AM
Sunday, April 27 2008
57 :through option for "named_scope" was created
  • MatthewRudy
    MatthewRudy created the ticket at 11:59 PM

    The new "named_scope" functionality is great.

    But it feels like it should have the option of specifying a :through scope name,

    through which the scope will b...

56 Cheaper Dependencies#log_call to resolve irritating error message w/ rake db:... was created
  • Sven Fuchs
    Sven Fuchs created the ticket at 11:43 PM

    I've just had the irritating experience of:

    $rake db:create
    rake aborted!
    Unknown database 'foo'
    

    ... which resulted from a plugin's ActiveRecord model ref...

54 render :template doesn't work was updated
  • Pratik
    • Assigned user set to Pratik
    by Pratik at 11:19 PM
  • iGEL
    iGEL created the ticket at 8:54 PM

    If I call render :template => "template" (which lives in app/views/template.html.erb) in my controller, I get the error, that the template doesn't exist. But i...

Changing "and" to && whereever I catc... was committed by Repository at 11:16 PM
Merge branch 'master' of git@github.c... was committed by Repository at 11:16 PM
55 Remove default integer :limit from MysqlAdapter.native_database_types was created
  • matthuhiggins
    matthuhiggins created the ticket at 11:11 PM

    A recent change to the MySql adapter adds smallint and bigint support based on the specified :limit. Since the default integer limit is specified as 11, intege...

39 Add blocks to AR create and update was updated
  • Adam Meehan
    Adam Meehan commented at 10:46 PM

    I did wonder. I will let the core team decide based on what they know and would prefer. Both patches are there.

  • matthuhiggins
    matthuhiggins commented at 10:38 PM

    Using returning reduces performance. Since create is a common operation, my suggestion might not be worth it.

50 Rails.vendor_rails? doesn't exist in older boot.rb files was updated
53 Edge-zip has zero length was updated
  • iGEL
    iGEL commented at 6:34 PM

    Sorry, this is a duplicate of #2. I didn't found the search option before. Admit it, the tiny magnifier on the right is hard to spot if everything else of the ...

  • iGEL
    iGEL created the ticket at 4:27 PM

    The file at http://dev.rubyonrails.org/archi... has a length of 0 bytes. Seems to be the case for more than a week!

41 ActiveRecord::Base#has_errors? was updated
  • josh
    • State changed from new to invalid
    by josh at 6:32 PM

    We are actually moving in the opposite direction, Errors will soon become more hash like. So #invalid? will be replaced by errors.any?.

22 default_url_options is being ignored by named route optimisation was updated
  • Cheah Chu Yeow
    Cheah Chu Yeow commented at 12:44 PM

    Attaching a patch instead - gonna delete my branch.

52 Remove argument from Base#attributes & deprecate was created
  • Frederick Cheung
    Frederick Cheung created the ticket at 12:17 PM

    Removes the options argument from trunk and add a deprecation warning to stable branch

Remove old :limit removal code from f... was committed by Repository at 9:02 AM