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 app/models/actions/give_action.rb
artfully_ose-1.2.0.beta.1 app/models/actions/give_action.rb
artfully_ose-1.2.0.alpha.2 app/models/actions/give_action.rb
artfully_ose-1.2.0.alpha.1 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.27 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.26 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.24 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.23 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.21 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.20 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.19 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.18 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.17 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.16 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.15 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.12 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.11 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.10 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.9 app/models/actions/give_action.rb
artfully_ose-1.2.0.pre.8 app/models/actions/give_action.rb