app/controllers/faalis/api/v1/groups_controller.rb in faalis-0.15.1 vs app/controllers/faalis/api/v1/groups_controller.rb in faalis-0.16.0

- old
+ new

@@ -1,14 +1,14 @@ require_dependency "faalis/api_controller" module Faalis - class API::V1::GroupsController < APIController + class API::V1::GroupsController < ::APIController # TODO: Use strong params # TODO: implement authorization # GET /api/v1/groups def index - @groups = Group.includes(:permissions).all + @groups = Group.includes(:permissions).to_a authorize! :read, Faalis::Group respond_with(@groups) end def create