app/controllers/ahoy/messages_controller.rb in ahoy_email-0.3.1 vs app/controllers/ahoy/messages_controller.rb in ahoy_email-0.3.2
- old
+ new
@@ -1,7 +1,11 @@
module Ahoy
class MessagesController < ActionController::Base
- before_filter :set_message
+ if respond_to? :before_action
+ before_action :set_message
+ else
+ before_filter :set_message
+ end
def open
if @message && !@message.opened_at
@message.opened_at = Time.now
@message.save!