Sha256: be25a91f8a6da25d28a4af71af87d2a57e4c33c06781b21ebc30d704fb5cdfa4

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

require "rails/generators"
require_relative "../../actions"

module Suspenders
  module Production
    class ForceTlsGenerator < Rails::Generators::Base
      include Suspenders::Actions

      def config_enforce_ssl
        configure_environment "production", "config.force_ssl = true"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
suspenders-1.50.0 lib/suspenders/generators/production/force_tls_generator.rb
suspenders-1.49.0 lib/suspenders/generators/production/force_tls_generator.rb
welaika-suspenders-2.29.0 lib/suspenders/generators/production/force_tls_generator.rb
suspenders-1.48.0 lib/suspenders/generators/production/force_tls_generator.rb
welaika-suspenders-2.29.0.alpha.3 lib/suspenders/generators/production/force_tls_generator.rb
welaika-suspenders-2.29.0.alpha.2 lib/suspenders/generators/production/force_tls_generator.rb
welaika-suspenders-2.29.0.alpha.1 lib/suspenders/generators/production/force_tls_generator.rb
suspenders-1.47.0 lib/suspenders/generators/production/force_tls_generator.rb