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)

Thursday, May 29 2008
278 patch for plugin install to support scp syntax git repo urls was created
  • Tekin
    Tekin created the ticket at 10:30 PM

    Following on from [#276], here's another small patch that adds support for scp syntax urls:

    [user@]host.xz:/path/to/repo.git/

    This is helpful primarily becau...

275 Make "first" and "last" on associations accept conditions (etc) was updated
  • Amos King
    Amos King commented at 10:14 PM

    Maybe I'm missing something, but I put this test in my branch:

    def test_first_on_association_with_conditions

    firm = Firm.new("name" => "A New Firm, Inc")

    fi...

  • Wincent Colaiuta
    Wincent Colaiuta created the ticket at 6:16 PM

    Just noticed that while you can do stuff like this:

    Topic.first :conditions => { :foo => bar }
    

    Trying the same type of thing across an association won't wor...

277 Add page.reload functionality was updated
  • Pratik
    • State changed from resolved to open
    by Pratik at 8:28 PM

    Entered wrong ticket number. Silly me.

  • Repository
    • State changed from new to resolved
    by Repository at 8:24 PM

    (from [1b0654ea41d15552c19f767570d4f551d617e742]) Ensure script/plugin installs ssh/git plugins. [#277 state:resolved]

    Signed-off-by: Pratik Naik

    http://git...

  • shuber
    shuber created the ticket at 7:36 PM

    A small addition to the ActionView::Helpers::PrototypeHelper for use in .rjs templates or render(:update) blocks. It simply sends window.location.reload(); to ...

276 Typo in Rails Plugin Manager is stopping git repos behind SSH working was updated
  • Pratik
    • State changed from new to resolved
    by Pratik at 8:28 PM
  • Tekin
    Tekin commented at 7:38 PM

    You would have thought so. It still took me a good half am hour of staring at that line before I spotted the typo in disguise!!

  • Cheah Chu Yeow
    Cheah Chu Yeow commented at 7:12 PM

    There're no existing tests for this but this is an obvious fix. Good catch :)

  • Tekin
    Tekin created the ticket at 6:50 PM

    I was having problems installing git based plugins over SSH, e.g.

    ssh://[user@]host.xz/path/to/repo.git/

    Bit of digging and I spotted a typo in railties/lib/...

Ensure script/plugin installs ssh/git... was committed by Repository at 8:24 PM
59 When loading a plugin via rubygems, rake tasks aren't included was updated
  • Ben Scofield
    Ben Scofield commented at 7:33 PM

    Here's a patch for the issue - it includes tasks from frozen gems in exactly the same way they're included from plugins (e.g., /vendor/gems/*/**/tasks/**/*.rak...

274 Finder :include assoc with same name as key fail on Postgres was created
  • Martin Sadler
    Martin Sadler created the ticket at 5:31 PM

    On Postgres when calling find on a model with an :include that contains an association with the same name as it's key an exception is raised:

    >> Project.find(...

259 Load plugin rake tasks before root/lib/tasks was updated
Ensure :select passed in options over... was committed by Repository at 2:26 PM
239 Change :select precedence in construct_finder_sql to favor options[:select] was updated
  • Repository
    • State changed from open to resolved
    by Repository at 2:26 PM

    (from [235d635708dd72bee0828457af5397c79750483a]) Ensure :select passed in options overrides the one from the scope. [#239 state:resolved]

    Signed-off-by: Prat...

  • Pratik
    • State changed from incomplete to open
    by Pratik at 1:35 PM
  • Andrew White
    Andrew White commented at 1:06 PM

    Okay I've modified the patch to check both the sql generated and whether attributes are/are not present in the attributes hash after doing a find.

  • Pratik
    • State changed from new to incomplete
    • Assigned user set to Pratik
    by Pratik at 11:44 AM

    Looks good.

    Could you please change tests to check both :

    1) Query fired ( as you've already done )

    2) Assert result of a find. For example Developer.find(:...

254 Q-encode: should use upper case was updated
  • Pratik
    • State changed from new to incomplete
    by Pratik at 2:21 PM

    Patch is missing tests.

    Thanks.

271 make count(:conditions => {}) work on has_many associations was updated
  • Pratik
    • State changed from new to resolved
    by Pratik at 12:30 PM
  • Repository
    Repository commented at 11:11 AM

    (from [abb1bd2efa43b8efbb3faf4ccfb9246704a9044c]) Ensure AssociationCollection#count works with empty condition. [#271 state:resolved] [Jan De Poorter]

    http:/...

Ensure AssociationCollection#count wo... was committed by Repository at 11:11 AM
Add ActionMailer#reply_to. [#245 stat... was committed by Repository at 11:11 AM
245 Add Reply-To to ActionMailer was updated
  • Repository
    • State changed from new to resolved
    by Repository at 11:11 AM

    (from [cf6299dbd73a8cb6d74265df03d01abe885e686a]) Add ActionMailer#reply_to. [#245 state:resolved]

    Signed-off-by: Pratik Naik

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

242 Fixing form_authenticity_token in the test environment was updated
  • Pratik
    • State changed from new to invalid
    by Pratik at 10:50 AM

    This patch feels like a hack. You should just be using mocking/stubbing for such cases.

    Thanks.

240 A useful "methods" with my_methods was updated
  • Pratik
    • State changed from new to invalid
    by Pratik at 10:48 AM

    Not in favor of the patch really. You can always do what Jan said.

    Thanks.

268 Problem with config.gem and "pure" extensions was updated
  • Pratik
    • Assigned user set to Rick
    by Pratik at 10:19 AM
  • Pratik
    • Title changed from PATCH: Problem with config.gem and "pure" extensions to Problem with config.gem and "pure" extensions
    by Pratik at 10:17 AM
273 Format messages in validates_format_of was updated
  • John Hume
    John Hume commented at 4:47 AM

    Updated the patch to fix a line of trailing whitespace.

  • John Hume
    John Hume created the ticket at 2:45 AM

    Error messages from validates_format_of can't currently include the rejected value the way validates_inclusion_of and validates_exclusion_of can. This patch en...

Wednesday, May 28 2008
Ensure correct db time is reported in... was committed by Repository at 11:06 PM
269 has_many :class will nest within parent class... no override was updated
  • Brian Cardarella
    Brian Cardarella commented at 9:34 PM

    Small correction:

    def klass

    @klass ||= (options[:class_name].constantize rescue nil) || active_record.send(:compute_type, class_name)

    end

    Make this change ...

  • Brian Cardarella
    Brian Cardarella commented at 6:22 PM

    A simple workaround to fix this:

    ..../activerecord-2.0.2/lib/active_record/reflection.rb:124

    def klass

    @klass ||= active_record.send(:compute_type, class_na...

  • Brian Cardarella
    Brian Cardarella created the ticket at 5:52 PM

    If I have two nested models:

    User::Candidate

    Resource::Resume

    and I have within my candidate model:

    has_many :resumes, :class => "Resource::Resume"

    Active...

272 Make plugins also initialize form rails/init.rb was created
  • Jacek Becela
    Jacek Becela created the ticket at 9:09 PM

    There is an ongoing trend to package Rails plugins as gems. Features recently added to Rails (config.gem, rake gems:*) make this only easier.

    Before we forget...

271 make count(:conditions => {}) work on has_many associations was created
  • Jan De Poorter
    Jan De Poorter created the ticket at 8:01 PM

    When using conditions from a variable, it can sometimes be an empty hash (at least in my projects). When using it with count on a ActiveRecord::Base:

    User.cou...
270 Can't use :references in add_column was created
  • Mark A. Richman
    Mark A. Richman created the ticket at 7:40 PM

    I have a User and an Address model, where User has_one :address. When creating the Address mode, I am planning for a polymorphic association for another model ...

245 Add Reply-To to ActionMailer was updated
  • Joshua Warchol
    Joshua Warchol commented at 7:10 PM

    +1. Code, tests and docs look good to me. Patch applied well and I was able to use the reply_to functionality fine. Looking forward to not having to put it int...

268 PATCH: Problem with config.gem and "pure" extensions was updated
  • Wincent Colaiuta
    Wincent Colaiuta commented at 5:09 PM

    Forget patch 1 of the series. I see an equivalent fix has already been committed here:

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

  • Wincent Colaiuta
    Wincent Colaiuta commented at 4:10 PM

    Yet another patch. This one applies on top of the previous patch, although I can make a patch which instead applies on top of the current "master" if desired.

    ...

  • Wincent Colaiuta
    Wincent Colaiuta commented at 3:39 PM

    Ok, attaching another patch which fixes the other problem by adding the "ext" subdirectory inside the frozen gem for those gems which have it.

  • Wincent Colaiuta
    • Title changed from Problem with config.gem and "pure" extensions to PATCH: Problem with config.gem and "pure" extensions
    by Wincent Colaiuta at 3:33 PM

    Ok, I believe I've fixed the first issue (exceptions thrown for uninstalled gems) with the patch that I'm going to attach now.

    The problem was in the plugins ...

  • Wincent Colaiuta
    Wincent Colaiuta created the ticket at 1:18 PM

    I've tried using the new config.gem feature in Rails 2.1.0_RC1 with a gem which is a "pure" C extension (all C, no Ruby); that is, inside the gem the code live...

122 rails/init.rb doesn't get called for unpacked gems was updated
  • Wincent Colaiuta
    Wincent Colaiuta commented at 4:44 PM

    See also ticket #268. I ran into one of the problems mentioned here (the bombing out on nil) and attached a patch that fixes it. But looks like the equivalent ...

230 Fire model callbacks before notifying observers was updated
  • josh
    • Milestone changed from 2.1.1 to 2.x
    • State changed from resolved to open
    by josh at 4:26 PM

    After 2.1

  • Repository
    • State changed from open to resolved
    by Repository at 4:16 PM

    (from [08763e606282f14fe98f4cf87a9f93d6836373cc]) Callbacks fire before notifying observers [#230 state:resolved]

    Signed-off-by: Joshua Peek

    http://github.c...

Ensure named_scope#empty? uses count ... was committed by Repository at 4:07 PM
262 empty? on named_scope should use count was updated
  • Repository
    • State changed from new to resolved
    by Repository at 4:07 PM

    (from [c2fbcba16d2349285368c86b849db946dc0e7d57]) Ensure named_scope#empty? uses count query. [#262 state:resolved]

    Signed-off-by: Pratik Naik

    http://github...

43 Render partial with record doesn't assign given record to local variable if i... was updated
  • Mark A. Richman
    Mark A. Richman commented at 3:33 PM

    Where would one put error_messages_for @article.feed? In feeds/_feed.html.erb or in articles/new.html.erb?