summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-28 06:49:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-28 06:49:08 +0000
commitffcbbca81c0bbb4a38b7ab360f3b9a5ee6527144 (patch)
tree66d400a35bb46c2f9153cad8fb9c9c8ec49e8a49 /app
parent4c7ae6da3999f069ccf82318472365e93e974e23 (diff)
downloadredmine-ffcbbca81c0bbb4a38b7ab360f3b9a5ee6527144.tar.gz
redmine-ffcbbca81c0bbb4a38b7ab360f3b9a5ee6527144.zip
remove trailing white-spaces from app/controllers/versions_controller.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6691 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/versions_controller.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb
index 0c4135581..ed61fbb06 100644
--- a/app/controllers/versions_controller.rb
+++ b/app/controllers/versions_controller.rb
@@ -5,12 +5,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -24,7 +24,7 @@ class VersionsController < ApplicationController
before_filter :authorize
accept_api_auth :index, :create, :update, :destroy
-
+
helper :custom_fields
helper :projects
@@ -35,12 +35,12 @@ class VersionsController < ApplicationController
retrieve_selected_tracker_ids(@trackers, @trackers.select {|t| t.is_in_roadmap?})
@with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id]
-
+
@versions = @project.shared_versions || []
@versions += @project.rolled_up_versions.visible if @with_subprojects
@versions = @versions.uniq.sort
@versions.reject! {|version| version.closed? || version.completed? } unless params[:completed]
-
+
@issues_by_version = {}
unless @selected_tracker_ids.empty?
@versions.each do |version|
@@ -58,7 +58,7 @@ class VersionsController < ApplicationController
}
end
end
-
+
def show
respond_to do |format|
format.html {
@@ -69,7 +69,7 @@ class VersionsController < ApplicationController
format.api
end
end
-
+
def new
@version = @project.versions.build
if params[:version]
@@ -119,7 +119,7 @@ class VersionsController < ApplicationController
def edit
end
-
+
def update
if request.put? && params[:version]
attributes = params[:version].dup
@@ -140,7 +140,7 @@ class VersionsController < ApplicationController
end
end
end
-
+
def close_completed
if request.put?
@project.close_completed_versions
@@ -166,7 +166,7 @@ class VersionsController < ApplicationController
end
end
end
-
+
def status_by
respond_to do |format|
format.html { render :action => 'show' }