Method: Pageflow::MembershipPolicy#create?

Defined in:
app/policies/pageflow/membership_policy.rb

#create?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


52
53
54
55
56
57
58
# File 'app/policies/pageflow/membership_policy.rb', line 52

def create?
  if @membership.entity_type == 'Pageflow::Account'
    create_for_account?
  else
    create_for_entry?
  end
end