Last active
June 16, 2017 19:03
-
-
Save xuorig/56b197632d5957b17037da40a621b2b0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OnlyFilter | |
def self.call(schema_member, context) | |
return true unless visibility_proc = schema_member.metadata[:visibility_proc] | |
visibility_proc.call(context) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment