Issue Type: Bug Bug
Affects Versions: JRuby 1.7.4
Assignee: Thomas E Enebo
Created: 22/May/13 5:56 PM
Description:

In order to track down memory usage I recently started running with class reification on. This caused a few problems for me. One seems to be related to ActiveRecord's use of Array proxies and method_missing.

Given a class like:

class Site < ActiveRecord::Base
  has_many :url_groups do
    def most_recent
      visible(:include => :test_runs).sort_by { |group| group.test_runs.last.try(:created_at) || DateTime.new(0) }.reverse
    end
  end
end

Without reification enabled, `site.url_groups.most_recent` works fine. With reification enabled, I'll see an error message about `most_recent` not being defined on class Array.

Project: JRuby
Priority: Major Major
Reporter: Kevin Menard
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to