-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused String.shorten extension (#204)
It's only used in one view, and that view is unused and broken. And anyway, Rails 3 has a built-in truncate method that we can use instead (it's slightly different in how it interprets the length). Suggested-by: Ben Anderson <[email protected]>
- Loading branch information
Showing
3 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file was deleted.
Oops, something went wrong.