Rails: method_missing is not called on model when using associations
My current code:

    class Product < ActiveRecord::Base
      belongs_to :cateroy
    end

    class Category < ActiveRecord::Base
      def method_missing name
        true
      end
    end

    Category.new.ex_undefined_method          #=> true
    Product.last.category.ex_undefined_method #=> NoMethodError: undefined method `ex_undefined_method' for #<ActiveRecord::Associations::BelongsToAssociation:0xc4cd52c>


This is what I want:

    Product.last.category.ex_undefined_method #=> true

How can I accomplish this?
Rails: method_missing is not called on model when using associations
===

My current code:

    class Product < ActiveRecord::Base
      belongs_to :cateroy
    end

    class Category < ActiveRecord::Base
      def method_missing name
        true
      end
    end

    Category.new.ex_undefined_method          #=> true
    Product.last.category.ex_undefined_method #=> NoMethodError: undefined method `ex_undefined_method' for #<ActiveRecord::Associations::BelongsToAssociation:0xc4cd52c>


This is what I want:

    Product.last.category.ex_undefined_method #=> true

How can I accomplish this?