lib/convection/model/mixin/policy.rb in convection-1.0.7 vs lib/convection/model/mixin/policy.rb in convection-1.1.0

- old
+ new

@@ -39,13 +39,15 @@ statement(add_statement) end def document - { + doc = { 'Version' => version, 'Statement' => statement.map(&:render) } + doc['Id'] = id if id + doc end def render(parent = {}) parent.tap do |resource| resource['PolicyName'] = name unless name.is_a?(FalseClass)