lib/convection/model/mixin/conditional.rb in convection-0.0.1 vs lib/convection/model/mixin/conditional.rb in convection-0.2.1
- old
+ new
@@ -9,12 +9,10 @@
@condition = setter unless setter.nil?
@condition
end
def render_condition(resource)
- resource.tap do |r|
- r['Condition'] = condition unless condition.nil?
- end
+ resource['Condition'] = condition unless condition.nil?
end
end
end
end
end