Sha256: 9cdccd4f35c738ca458e90b0617f86503c1fbdcf1f5245b66f6be4153fa34797

Contents?: true

Size: 272 Bytes

Versions: 22

Compression:

Stored size: 272 Bytes

Contents

module Dorsale::BillingMachine::InvoicePolicyHelper
  POLICY_METHODS = [
    :list?,
    :export?,
    :create?,
    :read?,
    :update?,
    :download?,
    :copy?,
    :email?,
  ]

  def email?
    return false if invoice.customer.try(:email).nil?
    super
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
dorsale-3.3.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.2.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb