diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-03-17 18:04:22 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-03-17 18:04:22 -0700 |
commit | f55514125cae291791365effc856d237008f7cd2 (patch) | |
tree | 6080509ce323a5880b8b7552efc5d8f76afaade3 /actionpack/lib/action_controller/new_base/hide_actions.rb | |
parent | a2637e9f1fba92bc0b8dbf461ce9f4f8ffb4cfaa (diff) | |
download | rails-f55514125cae291791365effc856d237008f7cd2.tar.gz rails-f55514125cae291791365effc856d237008f7cd2.tar.bz2 rails-f55514125cae291791365effc856d237008f7cd2.zip |
Working toward getting a basic AbstractController framework
Diffstat (limited to 'actionpack/lib/action_controller/new_base/hide_actions.rb')
-rw-r--r-- | actionpack/lib/action_controller/new_base/hide_actions.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/new_base/hide_actions.rb b/actionpack/lib/action_controller/new_base/hide_actions.rb index 9847d7b086..b3777c3c1e 100644 --- a/actionpack/lib/action_controller/new_base/hide_actions.rb +++ b/actionpack/lib/action_controller/new_base/hide_actions.rb @@ -10,6 +10,12 @@ module ActionController def action_methods() self.class.action_names end def action_names() action_methods end + + private + + def respond_to_action?(action_name) + !hidden_actions.include?(action_name) && (super || respond_to?(:method_missing)) + end module ClassMethods def hide_action(*args) |