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

Weird error when confined to a module in rails 3 #30

Open
jneen opened this issue Jun 2, 2011 · 0 comments
Open

Weird error when confined to a module in rails 3 #30

jneen opened this issue Jun 2, 2011 · 0 comments

Comments

@jneen
Copy link

jneen commented Jun 2, 2011

Hey there,

I have all my auth classes namespaced, like so:

module Auth
  class Session
    # ...
  end
  class User
    # ...
  end
  # etc
end

I'm seeing the following error when trying to save a session:

`@auth::user' is not allowed as an instance variable name

I followed the stack traces a little bit, and it looks like it's triggered whenever find_by_rpx_identifier is called. There's a bunch of metaprogramming stuff in acts_as_authentic.rb, which seems to be sending the method auth::user to the session. Ideas?

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