ging/social_stream — pull request #301 by carlosgarciaq (2012-12-18 22:59:26+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::Ability.

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

Also, the generator social_stream:install has been
modified to create 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).
This generator detects if ability.rb exists and in this case
modifies it to include 'SocialStream::Ability'