Sha256: 909cb2c15e5a740fedfc3fe8e6882eacbee865486f93c51eb3ce45fdcfad5cfe

Contents?: true

Size: 520 Bytes

Versions: 13

Compression:

Stored size: 520 Bytes

Contents

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.19 app/models/membership_award.rb
artfully_ose-1.2.0.pre.18 app/models/membership_award.rb
artfully_ose-1.2.0.pre.17 app/models/membership_award.rb
artfully_ose-1.2.0.pre.16 app/models/membership_award.rb
artfully_ose-1.2.0.pre.15 app/models/membership_award.rb
artfully_ose-1.2.0.pre.12 app/models/membership_award.rb
artfully_ose-1.2.0.pre.11 app/models/membership_award.rb
artfully_ose-1.2.0.pre.10 app/models/membership_award.rb
artfully_ose-1.2.0.pre.9 app/models/membership_award.rb
artfully_ose-1.2.0.pre.8 app/models/membership_award.rb
artfully_ose-1.2.0.pre.7 app/models/membership_award.rb
artfully_ose-1.2.0.pre.6 app/models/membership_award.rb
artfully_ose-1.2.0.pre.5 app/models/membership_award.rb