public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
update callable_actions to exclude any methods beggining with an 
_underscope
ezmobius (author)
Wed May 14 17:34:14 -0700 2008
commit  085ce9721f52c9a56556341611f8ee943f5913ef
tree    75918f5c10879c33b1a1c1c2cc1a9bec7ebf7bce
parent  5259c13979a8cd3c7e232dc01dde91bafc9af9a1
...
108
109
110
111
 
 
112
113
114
...
108
109
110
 
111
112
113
114
115
0
@@ -108,7 +108,8 @@
0
           callables << (klass.public_instance_methods(false) + klass._shown_actions) - klass._hidden_actions
0
           klass = klass.superclass
0
         end until klass == Merb::AbstractController || klass == Object
0
- @callable_actions = Merb::SimpleSet.new(callables.flatten)
0
+ actions = callables.flatten.reject{|action| action =~ /^_.*/}
0
+ @callable_actions = Merb::SimpleSet.new(actions)
0
       end
0
       @callable_actions
0
     end

Comments

    No one has commented yet.