Remove unecessary conditional checks for 3.2

This actually works the same on 3.0-3.2, no need to check.
This commit is contained in:
Norman Clarke 2012-05-30 11:23:27 -03:00
parent 21350f09a1
commit 2c78811f61
1 changed files with 2 additions and 9 deletions

View File

@ -1,10 +1,3 @@
%h1 Partial layout used with for block: %h1 Partial layout used with for block:
- if Haml::Util.ap_geq?("3.2.0.alpha1") = render :layout => 'layout_for_partial' do
= render :layout => 'layout_for_partial' do %p Some content within a layout
%p Some content within a layout
- elsif Haml::Util.ap_geq_3?
= render :layout => 'layout_for_partial.haml' do
%p Some content within a layout
- else
- render :layout => 'layout_for_partial.haml' do
%p Some content within a layout