sutty/app/policies/collaboration_policy.rb

13 lines
289 B
Ruby
Raw Normal View History

2019-07-08 20:58:14 +00:00
# frozen_string_literal: true
# Política de aceptación de colaboradorxs
CollaborationPolicy = Struct.new(:usuarie, :collaboration) do
def collaborate?
collaboration.site.colaboracion_anonima
2019-07-08 20:58:14 +00:00
end
def accept_collaboration?
collaboration.site.colaboracion_anonima
2019-07-08 20:58:14 +00:00
end
end