Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.607 kb
require 'application_controller'
ApplicationController.prepend_view_path(File.join(File.dirname(__FILE__), 'app', 'views'))
model_path = File.join(directory, 'app', 'models')
$LOAD_PATH << model_path
ActiveSupport::Dependencies.load_paths << model_path
controller_path = File.join(directory, 'app', 'controllers')
#$LOAD_PATH << controller_path
#ActiveSupport::Dependencies.load_paths << controller_path
#config.controller_paths << controller_path
$LOAD_PATH.insert(0, controller_path)
ActiveSupport::Dependencies.load_paths.insert(0, controller_path)
config.controller_paths.insert(0, controller_path)
Jump to Line
Something went wrong with that request. Please try again.