Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the Rake tasks available to Rails 3 apps.

I needed to include a Railtie to do this.
Bump the version and get ready to release a new gem.
  • Loading branch information...
commit 356edcde22dbe081213ab2f192b6fe45f5300a2a 1 parent a846f35
@tilsammans authored
View
5 CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.3.0 (February 2013)
+
+Add the Rake tasks to Rails 3 apps via a Railtie
+
+
## 0.1.0 (January 2011)
Initial release
View
2  lib/nilly_vanilly.rb
@@ -5,3 +5,5 @@
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, NillyVanilly::Nillify
end
+
+require "nilly_vanilly/railtie" if defined?(Rails)
View
7 lib/nilly_vanilly/railtie.rb
@@ -0,0 +1,7 @@
+module NillyVanilly
+ class Railtie < Rails::Railtie
+ rake_tasks do
+ load File.dirname(__FILE__) + "/../tasks/nilly_vanilly.rake"
+ end
+ end
+end
View
2  lib/nilly_vanilly/version.rb
@@ -1,3 +1,3 @@
module NillyVanilly
- VERSION = "0.2.0"
+ VERSION = "0.3.0"
end
Please sign in to comment.
Something went wrong with that request. Please try again.