Sha256: 94732eef69d6c4ef58655e83fd518a13fdf8e0ef111dbfe3f9f9670bb2de0a66

Contents?: true

Size: 197 Bytes

Versions: 5

Compression:

Stored size: 197 Bytes

Contents

module NotifyOn::MailerHelper

  def method_missing(method, *args, &block)
    m = method.to_s
    super unless m.ends_with?('_path') || m.ends_with?('_url')
    main_app.send(m, *args)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 app/helpers/notify_on/mailer_helper.rb
notify_on-1.0.4 app/helpers/notify_on/mailer_helper.rb
notify_on-1.0.3 app/helpers/notify_on/mailer_helper.rb
notify_on-1.0.2 app/helpers/notify_on/mailer_helper.rb
notify_on-1.0.1 app/helpers/notify_on/mailer_helper.rb