Permalink
Browse files

Add a railtie for loading up rake tasks

  • Loading branch information...
1 parent d427383 commit 134d44f6f7a96f4cdb9511227814dd6846d1f773 @ianwhite committed Mar 8, 2012
View
@@ -1,3 +1,7 @@
+== 0.0.2
+
+ * Add a railtie for loading up the rake tasks
+
== 0.0.1
* gem release
@@ -14,7 +14,7 @@
require 'rake'
require 'active_record'
- load "lib/tasks/git_friendly_dumper_tasks.rake"
+ require 'git_friendly_dumper/tasks'
task :environment do
require 'active_record'
View
No changes.
@@ -1,6 +1,7 @@
require 'fileutils'
require 'active_support/all'
require 'active_record/fixtures'
+require 'git_friendly_dumper/railtie' if defined?(Rails)
begin; require 'progressbar'; rescue MissingSourceFile; end
@@ -0,0 +1,7 @@
+class GitFriendlyDumper
+ class Railtie < Rails::Railtie
+ rake_tasks do
+ require 'git_friendly_dumper/tasks'
+ end
+ end
+end
@@ -1,3 +1,3 @@
class GitFriendlyDumper
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end

0 comments on commit 134d44f

Please sign in to comment.