Module: WdSinatraActiveRecord

Defined in:
lib/wd_sinatra_active_record.rb,
lib/wd_sinatra_active_record/version.rb

Defined Under Namespace

Modules: DBConnector

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.task_pathObject

Path to the rake task file so it can be loaded as such:

load WdSinatraActiveRecord.task_path

(Note that the app loaded should have been started using something like:

WDSinatra::AppLoader.console(RAKE_APP_ROOT)

before loading this rake task.)



15
16
17
# File 'lib/wd_sinatra_active_record.rb', line 15

def self.task_path
  File.join(File.expand_path(File.dirname(__FILE__), ".."), "wd_sinatra_active_record", "db.rake")
end