Permalink
Browse files

add Railtie

  • Loading branch information...
1 parent 6281dbc commit 97f6e713100e354901538da5571548a1176f40a1 @kookster kookster committed Jan 30, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 lib/apn_on_rails/rails/railtie.rb
@@ -0,0 +1,15 @@
+if defined?(Rails::Railtie) # backwards compatible
+
+module APN
+ module Rails
+
+ class Railtie < Rails::Railtie
+ rake_tasks do
+ Dir[File.join(File.dirname(__FILE__),'..', 'tasks/*.rake')].each { |f| load f }
+ end
+ end
+
+ end
+end
+
+end

0 comments on commit 97f6e71

Please sign in to comment.