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.

Robert Pankowecki's latest activity

Wednesday, September 29 2010
5731 AR::Relation#cache_key was updated in Ruby on Rails
5729 `delegate' method is not included in generated documentation was created in Ruby on Rails
Tuesday, September 14 2010
5622 boolean_attr_accessor was updated in Ruby on Rails
  • Robert Pankowecki
    • Tag changed from activesupport, attr_accessor, core_ext, patch to activesupport, attr_accessor, boolean, core_ext, patch
    by Robert Pankowecki at 8:38 AM

    I use such code for this:

    
    module Kernel
      def Boolean(b)
        return b if [FalseClass, TrueClass, NilClass].any?{|k| b.is_a?(k)}
        case b
        when /^1$/, /^t...
Saturday, September 11 2010
5145 I18n locale may be reset to :en if called from a plugin/gem was updated in Ruby on Rails
  • Robert Pankowecki
    • Tag changed from default_locale, i18n to available_locales, default_locale, gem, i18n, plugin
    by Robert Pankowecki at 7:52 PM
    #vendor/plugins/foo/init.rb 
    puts I18n.available_locales.inspect
    puts I18n.locale
    

    When 'rails c' is run you can see:

    [:en]
    en
    

    That is because you try to tra...

Wednesday, September 08 2010
5579 Rails3 - accepts_nested_attributes_for reject_if option does not work. was created in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki created the ticket at 9:35 AM
    
    class Project < ActiveRecord::Base
      has_many :tasks
      accepts_nested_attributes_for :tasks, :reject_if => proc { |attributes| true } # Always reject : just t...
Saturday, September 04 2010
5295 Rails3 RC - Application hangs randomly when server running in test environment was updated in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki commented at 10:13 PM

    My capybara tests stared to running fine again on Rails 3.0.0 so I can say that is not reproducible for me now.

Wednesday, September 01 2010
5522 Model classes are loaded before I18n is set when running tests. was created in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki created the ticket at 4:59 PM

    Model classes should be always loaded after full framework configuration.

    
    # config/locales/en.yml 
    en:
      hello: "Hello world"
    
    # config/locales/pl.yml 
    pl:
      ...
Tuesday, August 31 2010
5294 Rails3 RC - Associations (has_one, has_many) does not work with models that a... was updated in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki commented at 8:31 PM

    I checked that it works fine with Rails 3.0 final release and with master. You can close it.

Monday, August 30 2010
5294 Rails3 RC - Associations (has_one, has_many) does not work with models that a... was updated in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki commented at 6:23 PM

    How can I use latest rails in my project to reproduce it ?
    This is in my Gemfile:

    gem 'rails', :git => 'git://github.com/rails/rails.git'
    

    but running

    bundle ...
Saturday, August 28 2010
5476 Rails3 RC2 - Autoloading does not work correctly when constaint is nested in ... was updated in Ruby on Rails
  • Robert Pankowecki
    Robert Pankowecki commented at 12:05 AM

    I think that:
    require - requires file once but reload! does not remove the constant
    load - loads the file every time is called which leads to redefining constan...