app/models/family_gallery/ability.rb in family_gallery-0.0.3 vs app/models/family_gallery/ability.rb in family_gallery-0.0.4

- old
+ new

@@ -2,9 +2,11 @@ include CanCan::Ability def initialize(user) @user = user + can :index, FamilyGallery::Group + if @user @user.user_roles.each do |user_role| __send__(user_role.role) end end