1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activeresource/test
Matthijs Langenberg 67a838574b Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 state:resolved]
Following namespace use case was broken with Ruby 1.9:

  class Author < ActiveRecord::Base
    ...
  end

  module Api
    class Book < ActiveResouce::Base
    end
  end

Let's say XML contains <book><author><name>John</name></author>....

  Api::Book.first.author.class.to_s #=>
    Ruby 1.8.7: "Api::Book::Author" (namespaced, correct),
    Ruby 1.9: "Author" (toplevel, broken)

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-09-27 23:10:55 +02:00
..
cases Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 state:resolved] 2010-09-27 23:10:55 +02:00
fixtures Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 state:resolved] 2010-09-27 23:10:55 +02:00
abstract_unit.rb Fix broken module namespacing in ActiveResource with Ruby 1.9 [#5699 state:resolved] 2010-09-27 23:10:55 +02:00
connection_test.rb Allow per Resource format settings 2010-09-25 13:54:09 +02:00
setter_trap.rb added require abstract_unit on setter_trap.rb 2010-03-18 11:32:51 -07:00