Sha256: 7690aa41e287ac695dbc5db4099be01de61bf03ebf5c3be5e56c019c9139bb65

Contents?: true

Size: 1.79 KB

Versions: 2

Compression:

Stored size: 1.79 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>move_up (TasksController)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File app/controllers/tasks_controller.rb, line 132</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">move_up</span>
    <span class="ruby-identifier">task</span> = <span class="ruby-constant">Task</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
    <span class="ruby-identifier">task</span>.<span class="ruby-identifier">move_higher</span>
    <span class="ruby-identifier">flash</span>[<span class="ruby-identifier">:notice</span>] = <span class="ruby-node">&quot;Task #{@focus_id} was successfully moved.&quot;</span>
    <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:controller</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'periods'</span>, <span class="ruby-identifier">:action</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:show</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">task</span>.<span class="ruby-identifier">period</span>, <span class="ruby-identifier">:task</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">task</span>.<span class="ruby-identifier">id</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
backlog-0.8.1 doc/classes/TasksController.src/M000129.html
backlog-0.8.1 doc/classes/TasksController.src/M000109.html