Skip to content

Instantly share code, notes, and snippets.

# Copy and paste this to the rails console to test your email settings
class TestMailer < ActionMailer::Base
default :from => ENV['MOORAGE_EMAIL']
def welcome_email
mail(:to => "hugh@45robots.com", :subject => "Test mail", :body => "Test mail body")
end
end
class Deal < AR
attr_reader :minimum_order, :board_lot_size, :unit_value, :allocation_value
end
# last level allocation rate
# planned allocations
# deal
class DealAllocation < AR
belongs_to :deal