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.

bterkuile's latest activity

Thursday, April 28 2011
6754 mattr_accessor :config for module raises error (actionpack) after server restart was created in Ruby on Rails
  • bterkuile
    bterkuile created the ticket at 10:33 AM

    mattr_accessor :config for module raises error (actionpack) after server restart.
    Putting for example the following in config/initializers/break_it.rb

    module B...
Wednesday, April 20 2011
6733 Calling a relation in after_initialize disables includes(:relation) functiona... was created in Ruby on Rails
  • bterkuile
    bterkuile created the ticket at 6:41 PM

    When a relation is triggered in an after_initialize block the includes statement will not do its magic and falls back to separate requests. A reproduction scena...

Thursday, December 23 2010
6216 Fixnum round ambiguous was updated in Ruby on Rails
  • bterkuile
    • Tag changed from activesupport to 3.0.3, activesupport
    by bterkuile at 9:13 AM
  • bterkuile
    bterkuile created the ticket at 9:03 AM

    Failing test:
    3.44444444444444444444444444444444444.round(2) #=> 3.44
    3.round(2) #=> error

    Possible fix:
    class Fixnum
    def round(*args) self end end

Friday, November 05 2010
5909 unscoped on a relation removes where clause for relation from scope was updated in Ruby on Rails
  • bterkuile
    bterkuile commented at 12:16 AM

    I created a fix for an issue specific to my problem where i manually removed scopes and add them later again when the rest of the query was build. This is not a...

Wednesday, November 03 2010
5909 unscoped on a relation removes where clause for relation from scope was updated in Ruby on Rails
  • bterkuile
    bterkuile commented at 2:39 PM

    The best behaviour would be: Corporation.first.facilities.without_default_scope.to_sql => SELECT "facilities".* FROM "facilities" WHERE ("facilities".entity_id ...

Tuesday, November 02 2010
4583 Merge default scopes by default was updated in Ruby on Rails
  • bterkuile
    bterkuile commented at 9:28 AM

    with better formatting:

    class ActiveRecord::Base
     def self.default_scope(options = {})
      key = :"#{self}_scoped_methods"
      Thread.current[key] = nil
      self.def...
  • bterkuile
    bterkuile commented at 9:23 AM

    There is still an unsolved issue with this one:
    I would like:
    class Post
    default_scope order(:title) default_scope where(:state => 'active') end
    To be similar t...

Wednesday, August 04 2010
5292 Irregular inflection of singular form ending with an s is not fool proof was updated in Ruby on Rails
  • bterkuile
    bterkuile commented at 9:39 AM

    Forgot to mention version: 3.0.0.rc

  • bterkuile
    bterkuile created the ticket at 9:34 AM

    For example the irregular inflection:
    inflect.irregular 'mus', 'mussen' has a singular form ending with an s, and a plural form without. Testing with this:

    "mus...