From 520dae295bbd2e406739048b5d43e5e4cd1342d5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 26 Mar 2005 22:00:23 +0000 Subject: Added include_seconds option as the third parameter to distance_of_time_in_words which will render "less than a minute" in higher resolution ("less than 10 seconds" etc) #944 [thomas@fesch.at] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/verification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/verification.rb') diff --git a/actionpack/lib/action_controller/verification.rb b/actionpack/lib/action_controller/verification.rb index 88b2331273..db3ea39168 100644 --- a/actionpack/lib/action_controller/verification.rb +++ b/actionpack/lib/action_controller/verification.rb @@ -15,7 +15,7 @@ module ActionController #:nodoc: # class GlobalController < ActionController::Base # # prevent the #update_settings action from being invoked unless # # the 'admin_privileges' request parameter exists. - # verify :params => "admin_privileges", :only => :update_post + # verify :params => "admin_privileges", :only => :update_post, # :redirect_to => { :action => "settings" } # # # disallow a post from being updated if there was no information -- cgit v1.2.3