Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Whoops, bugfix

  • Loading branch information...
commit 9526cd3e7bb0fc8442cbc65c2c15b8558b0e5674 1 parent cd59f55
Tim Morgan RISCfuture authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 libs/leaf.rb
4 libs/leaf.rb
@@ -402,7 +402,7 @@ def self.before_filter(filter, options={})
402 402 options[:only] = [ options[:only] ]
403 403 end
404 404 if options[:except] and not options[:except].kind_of? Array then
405   - options[:except] = [ options[:only] ]
  405 + options[:except] = [ options[:except] ]
406 406 end
407 407 write_inheritable_array 'before_filters', [ [ filter.to_sym, options ] ]
408 408 end
@@ -429,7 +429,7 @@ def self.after_filter(filter, options={})
429 429 options[:only] = [ options[:only] ]
430 430 end
431 431 if options[:except] and not options[:except].kind_of? Array then
432   - options[:except] = [ options[:only] ]
  432 + options[:except] = [ options[:except] ]
433 433 end
434 434 write_inheritable_array 'after_filters', [ [ filter.to_sym, options ] ]
435 435 end

0 comments on commit 9526cd3

Please sign in to comment.
Something went wrong with that request. Please try again.