No SSL for development env
This is a great snippet from diaspora..
https://github.com/diaspora/diaspora/blob/develop/config/initializers/ignore_ssl_in_development.rb
if AppConfig.environment.certificate_authorities.blank? && (Rails.env == "development")
module OpenSSL
module SSL
remove_const :VERIFY_PEER
end
end
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
end
Written by Dinesh Vasudevan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#