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.9.3 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.9.2 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.9.1 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.9.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.8.1 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.8.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.8 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.7 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.6 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.5 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.4 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.2 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.1 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.7.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.6.1 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.6.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.5.2 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.5.1 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.5.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb
dorsale-3.4.0 app/policies/dorsale/billing_machine/invoice_policy_helper.rb