Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/test_cases/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

<% @test_cases.each do |test_case| %>
<tr>
<td><%= simple_format(test_case.input.shorten) %></td>
<td><%= simple_format(test_case.output.shorten) %></td>
<td><%= simple_format(test_case.input.truncate(100)) %></td>
<td><%= simple_format(test_case.output.truncate(100)) %></td>
<td><%= test_case.test_set_ids.to_s %></td>
<td><%= test_case.name %></td>
<td><%= test_case.problem_ids %></td>
Expand Down
4 changes: 0 additions & 4 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Load the rails application
require File.expand_path('../application', __FILE__)

require 'ext/string'
#longest length a string can be before it's truncated in index view
SHORTEN_LIMIT = 100

#Initialize the rails application
NZTrain::Application.initialize!
9 changes: 0 additions & 9 deletions lib/ext/string.rb

This file was deleted.