module ExactTarget
  class Subscriber
    include ActiveModel::Model

    attr_accessor :email, :travel_weekly, :enews, :travel_especials, :ins_enews, :deals_discounts, :fleet_contact,
                  :new_member_series, :personal_vehicle_reminder, :business_vehicle_reminder, :associate_vehicle_reminder,
                  :vr_reminder_email, :vr_reminder_sms, :vr_reminder_autocall,
                  :cell_phone_number, :phone_number

    def save
      SubscriptionManager.new.save(self)
    end

    def sign_up_for_vehicle_reminder?
      personal_vehicle_reminder.present? || business_vehicle_reminder.present? || associate_vehicle_reminder.present?
    end
  end
end

module ExactTarget
  class Subscriber
    include ActiveModel::Model
    include ActiveRecord::AttributeAssignment if defined?(ActiveRecord::AttributeAssignment)

    attr_accessor :email, :travel_weekly, :enews, :travel_especials, :ins_enews, :deals_discounts, :fleet_contact,
                  :new_member_series, :personal_vehicle_reminder, :business_vehicle_reminder, :associate_vehicle_reminder,
                  :vr_reminder_email, :vr_reminder_sms, :vr_reminder_autocall,
                  :cell_phone_number, :phone_number

    def save
      SubscriptionManager.new.save(self)
    end

    def sign_up_for_vehicle_reminder?
      personal_vehicle_reminder.present? || business_vehicle_reminder.present? || associate_vehicle_reminder.present?
    end
  end
end

Make this compatible with more recent Rails versions that support more advanced functionality.
Make this compatible with more recent Rails versions that support more advanced functionality.
