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