Sha256: 8fbba1610b9db48f23856306d7801bf3789a5ef31bffd9c920d4e6084543c01f

Contents?: true

Size: 206 Bytes

Versions: 9

Compression:

Stored size: 206 Bytes

Contents

module Locomotive
  module ActionController
    module Ssl

      def require_ssl
        redirect_to protocol: 'https://' if Locomotive.config.enable_admin_ssl && !request.ssl?
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotive_cms-2.2.3 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.2.2 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.2.1 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.2.0 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.1.4 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.1.3 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.1.2 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.1.1 lib/locomotive/action_controller/ssl.rb
locomotive_cms-2.1.0 lib/locomotive/action_controller/ssl.rb