aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-03-28 20:32:09 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2012-03-28 20:32:09 -0700
commitc4d90e42042e66faee9ff2a32625cb250c15b4ed (patch)
tree56a68dd53e99f130cb64d34a4ef9ba24c8a50f7d /actionpack/lib/action_view
parentbbd2caeaf916980b4c55ffce2b8fd9097082f27a (diff)
parent77088196e99bcfe0be3729c38537cf0b8fd06461 (diff)
downloadrails-c4d90e42042e66faee9ff2a32625cb250c15b4ed.tar.gz
rails-c4d90e42042e66faee9ff2a32625cb250c15b4ed.tar.bz2
rails-c4d90e42042e66faee9ff2a32625cb250c15b4ed.zip
Merge pull request #5359 from avakhov/missed-commits-from-3-2-stable
Missed commits from 3-2-stable
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/date_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/date_helper.rb b/actionpack/lib/action_view/helpers/date_helper.rb
index 45e5a862b6..cb46f26d99 100644
--- a/actionpack/lib/action_view/helpers/date_helper.rb
+++ b/actionpack/lib/action_view/helpers/date_helper.rb
@@ -795,7 +795,7 @@ module ActionView
private
%w( sec min hour day month year ).each do |method|
define_method(method) do
- @datetime.kind_of?(Fixnum) ? @datetime : @datetime.send(method) if @datetime
+ @datetime.kind_of?(Numeric) ? @datetime : @datetime.send(method) if @datetime
end
end