Sha256: 6721e6d26653e990c5cfbee860a2d46aacdd1f4725df73dbe5d8e8247948c70b

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'
require_relative '../actions'

module Underlay
  class EnforceSslGenerator < Rails::Generators::Base
    include Underlay::Actions

    def enforce_ssl
      configure_environment 'production', 'config.force_ssl = true'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
underlay-2.0 lib/underlay/generators/enforce_ssl_generator.rb
underlay-1.52.1 lib/underlay/generators/enforce_ssl_generator.rb
underlay-1.50.1 lib/underlay/generators/enforce_ssl_generator.rb