forgeplus/app/constraint/react_constraint.rb

11 lines
173 B
Ruby

class ReactConstraint
def matches?(request)
# stuff
#
!File.exists?(File.join(Rails.root, "public", request.fullpath.split('?').first))
end
end