Skip to content

Instantly share code, notes, and snippets.

View seeflanigan's full-sized avatar

Cory Flanigan seeflanigan

View GitHub Profile
module SimpleGemDependecyChecker
class << self
def initialize
require_libraries
system_gems = get_installed_gems
required_gems = get_required_gems
verify_gems(required_gems, system_gems)
end
def require_libraries
class Order < ActiveRecord::Base
Rake::FileList["lib/import_layout_*.rb"].each { |f|
require f
}
set_table_name 'ap_order_upload'
belongs_to :distributor
belongs_to :school
# Join syntax to get Authorizations, UMC, Issues, etc.