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.28.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.28.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.27.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.27.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.26.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.26.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.25.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.25.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.24.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.24.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.22.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.22.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.21.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.21.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.20.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.20.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.19.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.19.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core_backend-0.0.18.pre app/concerns/controller/store_remote_ip_concern.rb
cmor_core-0.0.18.pre app/concerns/controller/store_remote_ip_concern.rb