Instantly share code, notes, and snippets.

Embed
What would you like to do?
Turning imperative conditionals into declarative rules
def webhook?
feature_available? &&
user_authorized? &&
under_plan_limit? &&
under_system_limit?
end
View Raw

(Sorry about that, but we can’t show files that are this big right now.)

View Raw

(Sorry about that, but we can’t show files that are this big right now.)

View Raw

(Sorry about that, but we can’t show files that are this big right now.)

View Raw

(Sorry about that, but we can’t show files that are this big right now.)

View Raw

(Sorry about that, but we can’t show files that are this big right now.)

View Raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment