Skip to content

Commit

Permalink
fixed if_language and unless_language tags
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Intini <intinig@gmail.com>
  • Loading branch information
pascaln authored and intinig committed Aug 25, 2009
1 parent 0b2b728 commit 221bf12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/language_redirect_tags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TagError < StandardError; end
<pre><code><r:if_language code="language" >...</r:if_language></code></pre>
}
tag 'if_language' do |tag|
tag.expand unless tag.attr['code'] == current_language
tag.expand if tag.attr['code'] == current_language
end

desc %{
Expand All @@ -20,7 +20,7 @@ class TagError < StandardError; end
<pre><code><r:unless_language code="language" >...</r:unless_language></code></pre>
}
tag 'unless_language' do |tag|
tag.expand if tag.attr['code'] == current_language
tag.expand unless tag.attr['code'] == current_language
end

desc %{
Expand Down

0 comments on commit 221bf12

Please sign in to comment.