Module: Cul::Omniauth::RemoteIpAbility

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/cul/omniauth/remote_ip_ability.rb

Instance Method Summary collapse

Instance Method Details

#current_abilityObject



3
4
5
# File 'app/controllers/concerns/cul/omniauth/remote_ip_ability.rb', line 3

def current_ability
  @current_ability ||= Ability.new(current_user, roles: session["devise.roles"], remote_ip:request.remote_ip)
end