Sha256: 3d5d05dafe9f7cc94abf6fe5f1066d4064d2122bbd26fab37ed73857565b869b
Contents?: true
Size: 287 Bytes
Versions: 45
Compression:
Stored size: 287 Bytes
Contents
module Hydra::Controller module IpBasedAbility # Overriding the default method provided by cancan # This passes the remote_ip to the Ability instance def current_ability @current_ability ||= ::Ability.new(current_user, remote_ip: request.remote_ip) end end end
Version data entries
45 entries across 45 versions & 1 rubygems