Closed axs89 closed 13 years ago
Your changes look good. However I am not sure why you removed
return lambda {|controller| return true } if Rails.env.development?
Well, I added this commit in after the pull request (didn't think that would also show up in the request). I was trying to add and test my custom authorization in development, and (before I looked into the code) wasn't sure why it wasn't getting called at all. I think that it makes sense as default behavior, but once a authorization block is passed maybe it should always call that block regardless of the environment? That's how I read the docs. I'll update my fork along with this approach and you can see if that makes more sense.
Commit has been pushed. Thanks.
Hi-
Per https://github.com/neerajdotname/admin_data/issues#issue/63, I've updated the routes file and regenerated the gemspec.
Thanks,
Arun