Forums » General Forum »
namspaces
Added by Anonymous 193 days ago
I just started using this gem, so forgive me if I am repeating something...
I know about the namespace support for controllers other than the ones generated by the generators. But I was wondering if support for namespaces in the generator was something that you think would be good for this project...I forked the git repo and was going to try my hand at it if you didn't mind...
Replies
RE: namspaces - Added by Andrew Stone 193 days ago
I actually just did that manual conversion from the generated lockdown code to a namespaced setup and it was quite tedious. So, yes, a namespace option for the generator would be nice.
I don't mind at all, this is the exact reason I open sourced this project: to make it better. So, have at it! :)
If you have any questions, let me know.
RE: namspaces - Added by Anonymous 193 days ago
Cool! Look forward to helping!
RE: namspaces - Added by Levi Cole 189 days ago
Just wanted to give you an update...I'm about 90% finished adding the namespace support...the first run should be done by the end of the night I will post maybe the diff and send you a pull request on github when im finnished...or you can check out my fork on github.
RE: namspaces - Added by Andrew Stone 188 days ago
cool to hear. it's a little messy in that generator code. sorry about that.
RE: namspaces - Added by Andrew Stone 186 days ago
I got the pull request, but won't be able to do anything with it until I return from vacation. Thanks for the help! I'm looking forward to seeing your changes.
RE: namspaces - Added by Andrew Stone 180 days ago
I'm working on it. Just one thing to note: sessions shouldn't be included in the namespace functionality. Just the users, user_groups and permissions management. I'm making that change now.
Thanks for your contribution to Lockdown Levi, I appreciate the help.
RE: namspaces - Added by Levi Cole 180 days ago
Hey, Im just glad that I could contribute! it was fun! Now that I think of it, that does make a lot more sense now doesn't it? Would be glad to help more in the future!
RE: namspaces - Added by Andrew Stone 179 days ago
Levi,
Could you test the new release (0.5.13) for me some, just to make sure I didn't miss anything. My next order of business to write some automated tests.
Thanks for your help. It is greatly appreciated! Let me know if you have any other suggestions.
-andy
RE: namspaces - Added by Levi Cole 172 days ago
Hey Andy,
Sorry for the late response, work has been busy. Just tested the the newest release...first thought, I ran script/generate lockdown and it ran the generator, but skipped over the controllers and views. I think maybe it should display the usage for that. I might try to get to that sometime this weekend or the coming week. Also, the script/generate --all generates a sessions folder in the controllers directory. Other than that, at first sight, everything looks great. Seriously thank you so much for this gem, It makes life really easy. I am about to switch a project over from RA to Lockdown. Probably next week. I am also writing a really lightweight blog app that uses it.
Levi
RE: namspaces - Added by Andrew Stone 172 days ago
Levi,
Thanks for the notice about the sessions directory, I just released a new version to correct that issue. I'm not sure what I'm going to do about the lack of parameters to script/generate lockdown. I'll have to give that one more thought.
Thanks for the help! Extra eyes are always needed.
-andy