rubycentral/cfp-app

View on GitHub
app/policies/current_event_context.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Captures additional context for Pundit policies to make authorization decisions by.
class CurrentEventContext
  attr_reader :user, :current_event

  def initialize(user, current_event)
    @user = user
    @current_event = current_event
  end
end