Where to require openssl?

Hi,

In one of my models I need to use openssl, but I don’t know where to
place the:

require ‘openssl’

statement?

Should I put it in the model file? Should I create a file under
config/initializers/requirements and place all my application wide
require in there?

Best regards,

Fernando P. wrote:

Hi,

In one of my models I need to use openssl, but I don’t know where to
place the:

require ‘openssl’

statement?

I’d put it in config/environment.rb

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs