Sha256: 7d40e12309147ec01e3c22d2558dd27604b9df43694487e8bb245ffebd5f7fa6

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

format do
  view :not_found do |args|
    srid = card.selected_revision_id
    if card.left.kind_of? Machine and (card.new_card? or !srid or srid == card.current_revision_id)
      # only regenerate output if it's really warranted 
      # (not when someone requests a specific old version that has been removed)
      card.left.update_machine_output   
      root.error_status = 302
      wagn_path card.left.machine_output_url
    else
      super args
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wagn-1.13.0.pre2 mods/standard/sets/right/machine_output.rb