Veera Sundaravel wrote:
> 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.

Duh, that makes sense. I was stuck on needing to pass the class name in, 
which even if that were the case, this isn't how to do it anyway. Brain 
spasm.

Thx.
-- 
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