ging/social_stream — pull request #295 by carlosgarciaq (2012-11-28 16:32:19+00:00)
Title: Modularization of Ability

Before this patch, there were two 'Ability' classes: Ability and
SocialStream::Ability. Only 'SocialStream::Ability' was being used
for authorization by CanCan, though the one that was normally
superseded was 'Ability'.

After this patch, there is only one 'Ability' class, in app/models, that
includes the module SocialStream::Models::Ability.

The events module has also been modified to overload
SocialStream::Models::Ability with its rules.

Also, the generator social_stream:add_authorization_rules has been
added to easily supersede app/models/ability.rb
Thus, the user does not need to know that Ability should include
SocialStream::Ability and call the parent initializer when
overloading this class.