app/models/ahoy/message.rb in ahoy_email-1.0.3 vs app/models/ahoy/message.rb in ahoy_email-1.1.0
- old
+ new
@@ -1,7 +1,7 @@
module Ahoy
class Message < ActiveRecord::Base
self.table_name = "ahoy_messages"
- belongs_to :user, (ActiveRecord::VERSION::MAJOR >= 5 ? {optional: true} : {}).merge(polymorphic: true)
+ belongs_to :user, polymorphic: true, optional: true
end
end