generators/emails/templates/example_email.rb in howitzer-2.0.3 vs generators/emails/templates/example_email.rb in howitzer-2.1.0
- old
+ new
@@ -1,8 +1,8 @@
# This class is example of test email
class TestEmail < Howitzer::Email
subject 'Test email'
def addressed_to?(new_user)
- plain_text_body =~ /Hi #{new_user}/ ? true : false
+ /Hi #{new_user}/ === plain_text_body
end
end