class method
self.require_tzinfo
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v4.0.13Signature
self.require_tzinfo()
No documentation comment.
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 377
def require_tzinfo
require 'tzinfo' unless defined?(::TZInfo)
rescue LoadError
$stderr.puts "You don't have tzinfo installed in your application. Please add it to your Gemfile and run bundle install"
raise
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 377
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone