Skip to content

Instantly share code, notes, and snippets.

@spencerfdavis
Created December 5, 2012 22:23
Show Gist options
  • Save spencerfdavis/4220060 to your computer and use it in GitHub Desktop.
Save spencerfdavis/4220060 to your computer and use it in GitHub Desktop.
FIX - rake aborted! undefined method `task' for #
require 'rake'
##!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
module ::Example
class Application
include Rake::DSL
end
end
module ::RakeFileUtils
extend Rake::FileUtilsExt
end
Example::Application.load_tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment