HabitatMap/AirCasting

View on GitHub
app/constraints/admin_constraint.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AdminConstraint
  def matches?(request)
    request.env['warden'].authenticate? && request.env['warden'].user.admin?
  end
end