forgeplus/app/constraint/react_constraint.rb

11 lines
173 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class ReactConstraint
def matches?(request)
# stuff
#
!File.exists?(File.join(Rails.root, "public", request.fullpath.split('?').first))
end
end