updated moip-ruby, nokogiri and feedzirra
Merge branch 'master' into migrate_cancan_to_pundit
Installed pundit and created the default Application Policy including Pundit in the Application Controller.
Merge branch 'master' into migrate_cancan_to_pundit
added explore controller spec
added project policy class with Project priviledges migrated from Ability model
Changed exception handler to handle Pundit and CanCan exceptions using the same method. Let's try a smooth migration.
Changed default application policy to give admin full control and permit show by default.
removed DELETE destroy spec as we don't use this method anymore. Changed spec for protected attributes, when we try to update a protected attribute now we ignore the protected one and update the permited ones.
Projects controller should not have destroy route, we leave this to the admin controller.
Removed the ProjectController policies from CanCan Ability model to ProjectPolicy using Pundit
Merge branch 'master' of github.com:catarse/catarse into migrate_cancan_to_pundit
simplifying permitted_attributes logic and making the policy object return just a plain hash with permitted attributes
works with attribute names as strings
removed some commented out lines
using shorter array of symbols constant
moving record ownership to protected helper that better explains it
refactoring update? method to use is_owned_by? helper
created another helper and simplified project permissions as update and create priviledges can be the same
created ProjectPolicy specs