Sha256: 82e4b609430797846a65d811f8b7fb5107daaa5ed9b6e903eb88230083266e34

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

class <%= file_name.classify %>Notif < UserNotif::Notif
  def email?
    # Override or delete (default: true)
  end

  def template_name
    '<%= file_name %>_notif'
  end

  def email_options
    # TODO: Add this I18n key in your yml and add options or delete the method if you want to keep default values
    super({
        subject: I18n.t('notif.<%= file_name %>.subject')
      })
  end

  def target_class
    <%= target.classify %>
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
user_notif-0.1.13.3 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.13.2 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.13.1 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.13 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.12 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.11.2 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.11.1 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.11 lib/generators/user_notif/templates/notif.rb.erb
user_notif-0.1.1 lib/generators/user_notif/templates/notif.rb.erb