Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created March 28, 2011 10:38
Show Gist options
  • Select an option

  • Save mikebaldry/890263 to your computer and use it in GitHub Desktop.

Select an option

Save mikebaldry/890263 to your computer and use it in GitHub Desktop.
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
UbuReporting::Application.initialize!
Dir[File.expand_path('../../lib/reports/*.rb', __FILE__)].each { |f| load f }
Dir[File.expand_path('../../app/reports/*.rb', __FILE__)].each { |f| load f }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment