Displaying 1 result from an estimated 1 matches for "set_my_actions".
2006 Apr 03
1
Best way to set custom Controller options
Hi All!
I''m searching a good way to set some options in my Controllers; I tried
defining a custom function, ie:
class PeopleController < ApplicationController
set_my_actions :action1, :action2
end
class ApplicationController
def self.set_my_actions(*args)
@@my_actions = args
end
end
But ''@@my_actions'' sets the class variable to _every_ Controllers
classes!
Any hints?
Thanks,
Marco
--
Posted via http://www.ruby-forum.com/.