Sha256: 1d97acd71d5e841f5a246660bcbc4407161538db81cbe6cab7c9a49470fa8360

Contents?: true

Size: 772 Bytes

Versions: 5

Compression:

Stored size: 772 Bytes

Contents

module Clearance
  module App
    module Models
      module ClearanceMailer
    
        def self.included(base)
          base.class_eval do
        
            include InstanceMethods
        
          end
        end
    
        module InstanceMethods
          def forgot_password(user)
            from       DO_NOT_REPLY
            recipients user.email
            subject    "[#{PROJECT_NAME.humanize}] Forgot your password"
            body       :user => user
          end
        
          def confirmation(user)
            recipients user.email
            from       DO_NOT_REPLY
            subject   "[#{PROJECT_NAME.humanize}] Account confirmation"
            body      :user => user
          end
        end
        
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hashrocket-clearance-0.4.0 lib/clearance/app/models/clearance_mailer.rb
hashrocket-clearance-0.4.1 lib/clearance/app/models/clearance_mailer.rb
hashrocket-clearance-0.4.2 lib/clearance/app/models/clearance_mailer.rb
hashrocket-clearance-0.4.3 lib/clearance/app/models/clearance_mailer.rb
hashrocket-clearance-0.4.4 lib/clearance/app/models/clearance_mailer.rb