From: Toshi MARUYAMA Date: Sun, 28 Aug 2011 06:49:08 +0000 (+0000) Subject: remove trailing white-spaces from app/controllers/versions_controller.rb. X-Git-Tag: 1.3.0~1271 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ffcbbca81c0bbb4a38b7ab360f3b9a5ee6527144;p=redmine.git 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 --- 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' }