Sha256: 906bfd644d3e29afb9509a474827fa4ba717ca6dbe24045062000e35fe7e2c23

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

module Hippo::Templates
    class TenantChange < Mail

        def initialize(tenant)
            @tenant = tenant
        end

        def to
            @tenant.email
        end

        def subject
            "The login address for #{Hippo.config.product_name} has changed"
        end

        def variables
            super.merge(
                'slug' => @tenant.slug,
                'domain' => @tenant.domain
            )
        end
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.8 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.7 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.6 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.5 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.4 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.3 lib/hippo/templates/tenant_change.rb
hippo-fw-0.9.2 lib/hippo/templates/tenant_change.rb