diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-07 10:38:57 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-07 10:38:57 -0500 |
commit | af40fa6d036d86895e7be4ef46a615d44eb41ede (patch) | |
tree | 481cd4d0aaf724833ce4c97fcaaf56aa8e109891 /actionpack/lib/action_controller/new_base | |
parent | 2854535b02bcee3668bda02c76c3105fc24730d3 (diff) | |
download | rails-af40fa6d036d86895e7be4ef46a615d44eb41ede.tar.gz rails-af40fa6d036d86895e7be4ef46a615d44eb41ede.tar.bz2 rails-af40fa6d036d86895e7be4ef46a615d44eb41ede.zip |
Prefer "included" language over "setup"
Diffstat (limited to 'actionpack/lib/action_controller/new_base')
-rw-r--r-- | actionpack/lib/action_controller/new_base/hide_actions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/new_base/hide_actions.rb b/actionpack/lib/action_controller/new_base/hide_actions.rb index 473a8ea72b..aa420442fb 100644 --- a/actionpack/lib/action_controller/new_base/hide_actions.rb +++ b/actionpack/lib/action_controller/new_base/hide_actions.rb @@ -1,10 +1,10 @@ module ActionController module HideActions - setup do + included do extlib_inheritable_accessor :hidden_actions - self.hidden_actions ||= Set.new + self.hidden_actions ||= Set.new end - + def action_methods() self.class.action_names end def action_names() action_methods end |