Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve compatibility issues with Ruby 1.9

  • Loading branch information...
commit 9e6bac55abdeae41b2032cca3e015c6b32c79cd2 1 parent 5ab0e93
@lsegal lsegal authored
View
2  Support/app/controllers/status_controller.rb
@@ -3,7 +3,7 @@
class StatusController < ApplicationController
include SubmoduleHelper
def index
- file_or_path = params[:path] || git.paths.first
+ file_or_path = *(params[:path] || git.paths.first)
puts '<h2>Status for ' + file_or_path.map { |e| "#{htmlize(shorten(e))}" }.join(', ') + " on branch ‘#{git.branch.current_name}’</h2>"
status_data = git.status(file_or_path)
render "_status", :locals => {:status_data => status_data}
View
2  Support/tmvc/lib/application_controller.rb
@@ -121,7 +121,7 @@ def render(__name__, __options__ = {}, &block)
__binding__ = binding
if __options__[:locals]
__v__ = __options__[:locals].values
- __binding__.eval(__options__[:locals].keys * ", " + ", = *(__v__.length == 1 ? __v__[0] : __v__)")
+ __binding__.eval(__options__[:locals].keys * ", " + ", = *__v__")
end
__erb__ = ERBStdout.new(___template___, nil, "-", "@output_buffer")
Please sign in to comment.
Something went wrong with that request. Please try again.