Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `as_action_aliases' for #<Ability:0x10763da00> #247

Open
timuckun opened this issue Feb 27, 2013 · 3 comments

Comments

@timuckun
Copy link

Using cancan 1.6.9 latest AS from git.

This was working but now it broke and I have no idea why or how.

@scambra
Copy link
Member

scambra commented Mar 7, 2013

Can you post the backtrace?

@naaano
Copy link

naaano commented Apr 10, 2013

that happens when there's no current_user, when you try to use it from rails console, where you don't initialize Session and therefore no current_user

@timuckun
Copy link
Author

Yes it's a weird quirk. I have a base controller and I inherit from that.
If I try to access the base controller in development mode I get that
error. It's quite strange and I think it has to do with the fact that AS is
all class level stuff.

On Thu, Apr 11, 2013 at 5:04 AM, Hernán Astudillo
[email protected]:

that happens when there's no current_user, when you try to use it from
rails console, where you don't initialize Session and therefore no
current_user


Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-16187586
.

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

No branches or pull requests

3 participants