Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Using with Rails, tried to store RedditKit::Client in a session. "no _dump_data is defined for class Proc" #41

Open
wahidrahim opened this issue Apr 7, 2015 · 0 comments

Comments

@wahidrahim
Copy link

I am using RedditKit to make a Reddit app with limited capabilities, with rails. I am trying to figure out how to properly persist users session after logging in. My first idea was session[:client] = RedditKit::Client.new params[:username], params[:password], and I get no _dump_data is defined for class Proc error when I try to sign in.

I take it that RedditKit::Client cannot be marshalled? I have further suspicion that I shouldn't be storing the client in a session in the first place. Is there a recommended way?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant