From c5205041f65206a1490063b08915e7b2a2151a61 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 19 May 2012 18:24:16 -0300 Subject: Use right option for excerpt text helper in tests, fix build `excerpt` text helper uses `:radius`, not `line_width` (that is used by `word_wrap` helper). Also cleanup some whitespaces. --- actionpack/lib/action_view/helpers/text_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib/action_view/helpers/text_helper.rb') diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 1834b88532..3490b1f34f 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -113,7 +113,7 @@ module ActionView unless args.empty? ActiveSupport::Deprecation.warn "Calling highlight with a highlighter as an argument is deprecated. " \ "Please call with :highlighter => '#{args[0]}' instead.", caller - + options[:highlighter] = args[0] || '\1' end options.reverse_merge!(:highlighter => '\1') @@ -161,7 +161,7 @@ module ActionView unless args.empty? ActiveSupport::Deprecation.warn "Calling excerpt with radius and omission as arguments is deprecated. " \ "Please call with :radius => #{args[0]}#{", :omission => '#{args[1]}'" if args[1]} instead.", caller - + options[:radius] = args[0] || 100 options[:omission] = args[1] || "..." end -- cgit v1.2.3