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.

codemanki's latest activity

Tuesday, October 12 2010
2285 session.to_hash() doesn't lazy load was updated in Ruby on Rails
  • codemanki
    codemanki commented at 7:58 PM

    Ah! Something wrong with the code
    class TestController < ApplicationController
    require "pp"

    def one

    session[:ola] = 1
    render :text => "this is one"
    

    end

    def tw...

  • codemanki
    • Importance changed from to
    by codemanki at 7:58 PM

    I tried to recheck this bug, but got nothing:

    class TestController < ApplicationController
    require "pp"

    def one

    {mkd-extraction-3428d314cffbe6c81677aaeb159e9ce...
Sunday, October 10 2010
5314 Rails3 RC - Schema.rb file does not contain all indexes created with migratio... was updated in Ruby on Rails
  • codemanki
    codemanki commented at 11:51 AM

    This ticket can be closed, i suppose. I tested these migrations and got

    /Users/codemanki/projects/misc/rails/activerecord/lib/active_record/connection_adapters...

  • codemanki
    codemanki commented at 11:41 AM

    Robert, yes, this is because there is a limit of 64 chars per index name - database_limits.rb:21

    And here is a exception which must be raise, but i think in mi...

Saturday, October 09 2010
3332 Add options[:procs] to to_json was updated in Ruby on Rails
  • codemanki
    codemanki commented at 8:23 PM

    @José No, you are not missing. It can be done in this way too. Or even @user.as_json.merge(:can_login => true).to_json :)
    So, you think this is unnecessary feat...

  • codemanki
    codemanki commented at 8:04 PM

    @José Lets say, i have
    User.first.to_json , and it will return something like "{"login": "codemanki", "email": "mail@gmail.com"}"
    And i can do
    proc = Proc.new{|...

Friday, October 08 2010
3332 Add options[:procs] to to_json was updated in Ruby on Rails
  • codemanki
    codemanki commented at 10:38 PM

    Oh. something hapened with code.
    rails/activemodel/lib/active_model/serializers/xml.rb line 100

          @builder.tag!(*args) do
            add_attributes_and_method...
  • codemanki
    codemanki commented at 10:36 PM

    Here is my opinion. I did a little research on serialization :).
    When you do
    User.first.to_xml(:procs => [Proc.new{|options|}])
    OR
    User.first.to_xml(:procs => [...

5769 test/railties/engine_test.rb:91 fails was created in Ruby on Rails
  • codemanki
    codemanki created the ticket at 11:19 AM

    Test railties/test/railties/engine_test.rb fails:

    Failure


    test_engine_is_a_rack_app_and_can_have_his_own_middleware_stack(RailtiesTest::EngineTest)
    [test/railt...