Sha256: 0061d68fe7799ed62c9a9b3f4595d03c332f86327acacc503617ab7e36d2eb3f

Contents?: true

Size: 449 Bytes

Versions: 28

Compression:

Stored size: 449 Bytes

Contents

class GiveAction < Action
  def self.subtypes
    ["Monetary", "In-Kind"]
  end

  def editable?
    subject.try(:editable?)
  end

  def action_type
    "Give"
  end

  def verb
    "gave"
  end
  
  def sentence
    " contributed to your organization"
  end

  def quip
    "gave us (#{subtype.downcase})"
  end

  def set_params(params, person)
    params ||= {}
    self.dollar_amount = params[:dollar_amount]
    super(params, person)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.7 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.6 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.5 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.4 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.3 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.2 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.1 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre app/models/actions/give_action.rb