5 lines
132 B
Ruby
5 lines
132 B
Ruby
class UserHomepageConstraint < Struct.new(:role)
|
|
def matches?(request)
|
|
role == request.env['warden'].user.koelkast?
|
|
end
|
|
end
|