Sha256: 0d3e5524cef6ec8a27b03ac181a1a7887ea42bf870c3c1dfce7d2e52a82dc05d

Contents?: true

Size: 213 Bytes

Versions: 13

Compression:

Stored size: 213 Bytes

Contents

module Cul::Omniauth::RemoteIpAbility
  extend ActiveSupport::Concern
  def current_ability
    @current_ability ||= Ability.new(current_user, roles: session["devise.roles"], remote_ip:request.remote_ip)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cul_omniauth-0.8.0 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.7.0 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.6.1 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.5.5 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.6.0 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.5.3 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.5.2 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.5.1 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.5.0 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.4.3 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.4.2 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.4.1 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb
cul_omniauth-0.4.0 app/controllers/concerns/cul/omniauth/remote_ip_ability.rb