From 95c609357e78106e9673931d3f60d8ff3cc0a0cd Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Thu, 16 Oct 2008 23:17:49 +0200 Subject: Ensure association proxy responds to private class methods defined in associated class. [#1083] --- activerecord/test/models/company.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 62d20861f3..0e3fafa37c 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -112,6 +112,14 @@ class Client < Company def rating? query_attribute :rating end + + class << self + private + + def private_method + "darkness" + end + end end -- cgit v1.2.3