Sha256: 0e461d9115ab2c0dc5f30400ed18e50e4b2ed5ca528f7b78d885216296d638eb

Contents?: true

Size: 257 Bytes

Versions: 120

Compression:

Stored size: 257 Bytes

Contents

module Controller
  module StoreRemoteIpConcern
    extend ActiveSupport::Concern

    included do
      before_action :store_remote_ip
    end

    private

    def store_remote_ip
      RequestLocals.store[:remote_ip] = request.remote_ip
    end
  end
end

Version data entries

120 entries across 120 versions & 3 rubygems

Version Path
cmor_core_backend-0.0.60.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.60.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.59.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.59.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.58.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.58.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.57.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.57.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.56.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.56.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.55.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.55.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.54.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.54.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.53.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.53.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.52.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.52.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.51.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.51.pre app/concerns/controller/store_remote_ip_concern.rb