app/policies/pundit_context.rb
class PunditContext
attr_reader :current_team, :current_user, :current_story, :current_project, :active_admin
def initialize(current_team, current_user, options = {})
@current_team = current_team
@current_user = current_user
@current_project = options.delete(:current_project)
@current_story = options.delete(:current_story)
@active_admin = options.delete(:active_admin) || false
end
end