g5search/rails-authorization-plugin — pull request #2 by arturopie (2012-03-06 20:36:09+00:00)
Title: Ruby 1.9 compatibility

Hi,

Object.constants returns an array of strings in Ruby 1.8; however, it returns an array of symbols in Ruby 1.9. I made authorization.rb compatible with ruby 1.9 by using Object.const_defined?(:AUTHORIZATION_MIXIN) instead of Object.constants.include? "AUTHORIZATION_MIXIN". This way, authorization-plugin is compatible with both 1.8 and 1.9.

Please, accept my changes and let me know when you release this changes.

Thanks,

Arturo