Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 81dac155bd
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.355 kB
class Donate
include ActiveModel::Validations
include ActiveModel::Conversion
extend ActiveModel::Naming
attr_accessor :amount, :number
validates_numericality_of :amount, :greater_than => 0
def initialize(attributes = {})
attributes.each do |name, value|
send("#{name}=", value)
end
end
def persisted?
false
end
end
Jump to Line
Something went wrong with that request. Please try again.