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.

There was a problem

You must be a member of this account.

Neeraj Singh's latest activity

Wednesday, April 20 2011
6720 Parameter Filter not working was updated in Ruby on Rails
  • Neeraj Singh
    Neeraj Singh commented at 10:02 AM

    @steve

    to_s is currently not being called on ActionDispatch::RemoteIp::RemoteIpGetter. Rather the value is left intact. In other words value is not being altere...

  • Neeraj Singh
    Neeraj Singh commented at 3:46 AM

    I investigated a bit and this is what I found.

    The output looks like this https://gist.github.com/930236

    Look at #8 the key is (action_dispatch.request.paramete...

Tuesday, April 19 2011
6720 Parameter Filter not working was updated in Ruby on Rails
  • Neeraj Singh
    • Importance changed from to Low
    by Neeraj Singh at 11:07 PM

    Which version of Rails you are using? I tested it with one of my apps which is using Rails 3.0.3 and this is what I am getting. Notice that password is filtered...

Saturday, April 09 2011
6546 Error sending empty Content-Type instrumentation.rb#22 was updated in Ruby on Rails
6575 helper :all from ActionMailer was updated in Ruby on Rails
Monday, April 04 2011
6666 save (ActiveRecord::Persistence) can return true even when the model is not s... was updated in Ruby on Rails
  • Neeraj Singh
    • State changed from resolved to open
    by Neeraj Singh at 8:14 PM

    @Alexey. Now I see your point.

    class User < ActiveRecord::Base
      def self.lab
        u1 = User.create
        User.delete_all
        u1.name = 'foo'
        puts u1.save #=>...
  • Neeraj Singh
    Neeraj Singh commented at 6:06 PM

    Before hitting save you are doing

    p.name = "John"
    

    Now that line is throwing exception since the object is frozen. So you don't even get to save method.

  • Neeraj Singh
    • State changed from new to resolved
    by Neeraj Singh at 1:28 PM

    Fixed in https://github.com/rails/rails/commit/b35617235d43bdb32016a623044e7... .

    Make sure that in console first you do

    ActiveRecord::IdentityMap.enabled = t...
  • Neeraj Singh
    Neeraj Singh commented at 5:04 AM

    It seems miloops has a fix for Identity mapping. https://github.com/rails/rails/pull/251/files

  • Neeraj Singh
    • Importance changed from to Low
    by Neeraj Singh at 4:33 AM

    Following code is causing problem

    p = Person.create(:name=>'Bill')
    Person.find(p.id).destroy
    p.persisted?     # => true
    p.destroyed?     # => false
    p.name = "J...