module PeoplesoftModels

This base class exists to provide a point to alter the database connection that a developer is using to connect to PeopleSoft tables. All generated models inherit from this class instead of ActiveRecord::Base.

Constants

VERSION

Public Class Methods

const_missing(name) click to toggle source
Calls superclass method
# File lib/peoplesoft_models.rb, line 8
def self.const_missing(name)
  record_name = name.to_s.demodulize.underscore.upcase

  begin
    const_set(name, Record.find(record_name).to_model)
  rescue ActiveRecord::RecordNotFound
    super(name)
  end
end