- Added support for secret token rotation
- Improved secret token generation
- Removed support for Ruby < 3 and Rails < 6.1
- Updated messages generator for Lockbox 1.0
- Fixed deprecation warning with Redis 4.6+
- Fixed external redirects with Rails 7
- Added experimental support for Active Record encryption
- Fixed mailer
default_url_options
not being applied to click links
- Fixed
utm_params
andtrack_clicks
stripping<head>
tags from messages
- Added support for Mongoid to database subscriber
- Added database subscriber
- Made
to
field encrypted by default for new installations - Added click analytics for Redis
- Added send events to subscribers
- Removed support for Rails < 5.2
Breaking changes
- The
track
method has been broken intohas_history
for message history,utm_params
for UTM tagging, andtrack_clicks
for click analytics - Message history is no longer enabled by default
- Open tracking has been removed
:message
is no longer included in click events- Users are shown a link expired page when signature verification fails instead of being redirected to the homepage when
AhoyEmail.invalid_redirect_url
is not set
- Added support for classes for subscribers
- Use
datetime
type in migration
- Made
opened_at
optional with click tracking - Fixed secret token for environment variables
- Removed support for Rails 4.2
- Fixed custom message model
- Fixed
message
option with proc
- Fixed error with Ruby < 2.5
- Fixed UTM parameters storage on model
- Use observer instead of interceptor
- Removed support for Rails < 4.2
Breaking changes
- UTM tagging, open tracking, and click tracking are no longer enabled by default
- Only sent emails are recorded
- Proc options are now executed in the context of the mailer and take no arguments
- Invalid options now throw an
ArgumentError
AhoyEmail.track
was removed in favor ofAhoyEmail.default_options
- The
heuristic_parse
option was removed and is now the default
- Fixed secret token for Rails 5.2
- Added
heuristic_parse
option
- Fixed deprecation warning in Rails 5.2
- Added
unsubscribe_links
option - Allow
message_model
to accept a proc - Use
references
in migration
- Added support for Rails 5.1
- Added
invalid_redirect_url
- Fixed
belongs_to
error in Rails 5 - Include
safely_block
gem without polluting global namespace
- Fixed deprecation warning for Rails 5
- Do not track content by default on fresh installations
- Fixed deprecation warnings
- Fixed
stack level too deep
error
- Added safely for error reporting
- Fixed error with
to
- Prevent duplicate records when mail called multiple times
- Added
extra
option for extra attributes
- Save utm parameters
- Added
url_options
- Skip tracking for
mailto
links - Only set secret token if not already set
- Fixed secret token for Rails 4.1
- Fixed links with href
- Fixed message id for Rails 3.1
- Added
only
andexcept
options
- Enable tracking when track is called by default
- Rails 3 fix
- Try not to rewrite unsubscribe links
- Added
to
andmailer
fields - Added subscribers for open and click events
- Added
AhoyEmail.track
(fix)
- Use secure compare for signature verification
- Fixed deprecation warnings
- First major release