What I'm trying to do is very simple: prepare a list of permissions based on the definitions of controllers
It works very well, the only problem is that when I try to prepare a list of Rail Controllers for the second time (Note: First time works flawlessly without any time): < / P>
ActionController :: routing.possible_controllers
Let me work instead of strings The bottom line gets an array of controlling classes, as I can get it for the first time, it does not have to say, this is an exception to my code.
Why does this method work differently on many calls? Am I missing this, or is Ruby / Rail bug? (I'm running on windows)
Temporary Improvement: I store the string array as a result in the session, so next time I get the list from possible possible without the controllers method
But when a user logs off and a new log appears again in the problem, which will not work for production, which means that I have to close it. Docs
Docks say that it should return an array so I suggest you arrange your code Write to work with the version and then to get rid of the string version, put a dummy call, if you please report it, you may get a bug.
Comments
Post a Comment