Hi,
I've been trying to hack away at making a way to replace the words "role" and "roles" in the API with whatever name I want, and coming up against some major roadblocks. My metaprogramming skill isn't yet up to the task. I was wondering if you tried this, want to try it, or have thoughts on whether or not it can be done....?
Say instead of roles I have dogs or apps. Using the word "roles" doesn't make much sense when you're programming and you just wanted a bitmask for apps a user has access to. I tried to do it with a bunch of define_method magic, but ran into issues when I realized that it was affecting the method_missing stuff. Anyway, if you're curious about doing this I'd be happy to lend a hand.
Hi,
I've been trying to hack away at making a way to replace the words "role" and "roles" in the API with whatever name I want, and coming up against some major roadblocks. My metaprogramming skill isn't yet up to the task. I was wondering if you tried this, want to try it, or have thoughts on whether or not it can be done....?
Say instead of
rolesI havedogsorapps. Using the word "roles" doesn't make much sense when you're programming and you just wanted a bitmask forappsa user has access to. I tried to do it with a bunch of define_method magic, but ran into issues when I realized that it was affecting the method_missing stuff. Anyway, if you're curious about doing this I'd be happy to lend a hand.