lib/gatleon/rails/authform/concern.rb in gatleon-rails-0.2.0 vs lib/gatleon/rails/authform/concern.rb in gatleon-rails-0.3.0

- old
+ new

@@ -17,10 +17,12 @@ private # defaults to current_user define_method current_user_method_name do begin - JSON.parse(cookies[_authform_user_cookie_key])["data"] + json = JSON.parse(cookies[_authform_user_cookie_key])["data"] + + Gatleon::Rails::Authform::User.new(json: json, _form_secret_key: secret_key, _authform_base_url: _authform_base_url) rescue nil end end