public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
Search Repo:
more explicit conversion of parameters into arrays
timcharper (author)
Tue Apr 01 13:40:38 -0700 2008
commit  235516207106eabfc52928623b8840eacf992e9d
tree    f4570c0a11f123431ca67f37e19392752647b88c
parent  dedee0149b14316b0b25a4f7ef06bbb7965fb033
...
38
39
40
41
 
42
43
44
45
 
46
47
48
...
38
39
40
 
41
42
43
44
 
45
46
47
48
0
@@ -38,11 +38,11 @@ class ApplicationController
0
       
0
       layouts_conditions.each do |layout, condition|
0
         if condition[:except]
0
- next if condition[:except].map{|c| c.to_s}.include?(action.to_s)
0
+ next if [condition[:only]].flatten.map{|c| c.to_s}.include?(action.to_s)
0
         end
0
         
0
         if condition[:only]
0
- next unless condition[:only].map{|c| c.to_s}.include?(action.to_s)
0
+ next unless [condition[:only]].flatten.map{|c| c.to_s}.include?(action.to_s)
0
         end
0
         
0
         return layout

Comments

    No one has commented yet.