class MembershipAward extend ActiveModel::Naming include ActiveModel::Conversion include ActiveModel::Validations attr_accessor :people, :search, :organization, :membership_type, :number_of_memberships, :ends_at, :message, :send_email, :notes, :sold_price def persisted? false end def people_ids people.nil? ? [] : people.collect(&:id) end end