Skip to content

Commit

Permalink
We're receiving array so we can't do a sub! on it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Jun 17, 2011
1 parent 3afa301 commit c1fc29e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/refinery/i18n-filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def around_generate(params, &block)
locale = params.delete(:locale) || ::I18n.locale

yield.tap do |result|
result = result.is_a?(Array) ? result.first : result
if ::Refinery::I18n.enabled? and
locale != ::Refinery::I18n.default_frontend_locale and
result !~ %r{^/(refinery|wymiframe)}
Expand Down

0 comments on commit c1fc29e

Please sign in to comment.