Permalink
Browse files

Tidy up require calls.

  • Loading branch information...
1 parent 61c041b commit ab25e9af8ece3861b28193e2ecd49194e2afd1dc @nathanaelkane nathanaelkane committed Jun 12, 2011
Showing with 6 additions and 10 deletions.
  1. +5 −9 lib/postmarkdown.rb
  2. +1 −1 lib/postmarkdown/routes.rb
View
@@ -1,9 +1,5 @@
-module Postmarkdown
- if defined?(Rails)
- require 'postmarkdown/engine'
- require 'postmarkdown/config'
- require 'postmarkdown/routes'
- require 'postmarkdown/railtie'
- require 'postmarkdown/util'
- end
-end
+require 'postmarkdown/engine'
+require 'postmarkdown/config'
+require 'postmarkdown/routes'
+require 'postmarkdown/railtie'
+require 'postmarkdown/util'
@@ -1,5 +1,5 @@
class ActionDispatch::Routing::Mapper
- require File.expand_path(File.dirname(__FILE__) + '/util')
+ require 'postmarkdown/util'
def postmarkdown(options = {})
options.reverse_merge!({ :as => :posts, :permalink_format => :day })

0 comments on commit ab25e9a

Please sign in to comment.