lib/authn/session.rb in authn-3.1.0 vs lib/authn/session.rb in authn-3.1.4

- old
+ new

@@ -35,14 +35,14 @@ def klass_as_name(klass) klass.name.downcase end def generate_session_and_instance_from(instance) - instance.tap { instance_and_session instance if instance } + instance.tap { |i| instance_and_session i if i } end def instance_and_session(instance) - instance.tap { |instance| create_session instance.class, instance } + instance.tap { |i| create_session i.class, i } end def create_session(klass, instance) key = AuthN.config.session_key_function.call klass_as_name klass session[key] = instance.send AuthN.config.model_id_method