just modify the condition as follows:

:if => Proc.new{|my_class| MyClass.feature_is_enabled}
(or)
:if =>Proc.new{|whatever| MyClass.feature_is_enabled}

The problem is you used MyClass as constant instead of variable. Just 
using the lowercase letter will solve ur problem.



--
Regards,

T.Veerasundaravel.
http://tinyurl.com/25vma7h
@veerasundaravel

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to