Skip to content

Commit

Permalink
[Bug: #5] - autoloading of default configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgmnz committed Mar 23, 2010
1 parent 7e83d98 commit ce9d03a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
== 0.3.2 <not yet released>
* Fix for autoloading of classes in older Rails versions (kball)
* Fix for autoloading of classes in older Rails versions. (kball)
* Fix issue #5: autoloading of default configuration.

== 0.3.1 2010-02-03
* Fixed minor typo on the word_boundary option name.
Expand Down
6 changes: 0 additions & 6 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
require 'truncate_html'

TruncateHtml.configure do |config|
config.length = 100
config.omission = '...'
config.word_boundary = true
end
6 changes: 6 additions & 0 deletions lib/truncate_html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
ActionView::Base.class_eval do
include TruncateHtmlHelper
end

TruncateHtml.configure do |config|
config.length = 100
config.omission = '...'
config.word_boundary = true
end

0 comments on commit ce9d03a

Please sign in to comment.