Permalink
Browse files

Add rails_engine

  • Loading branch information...
mvj3 committed Apr 10, 2013
1 parent 350d5c1 commit 51658b0075b6740ab5722fffb3053f8c30b8db8e
Showing with 13 additions and 0 deletions.
  1. +1 −0 app/assets/javascripts
  2. +1 −0 lib/markdownizer.rb
  3. +11 −0 lib/markdownizer/rails_engine.rb
View
View
@@ -74,6 +74,7 @@
# [cr]: http://github.com/rubychan/coderay
require 'rdiscount'
+require File.expand_path("../markdownizer/rails_engine.rb", __FILE__)
require 'active_record' unless defined?(ActiveRecord)
Pygments::Lexer.create :name => "XML", :filenames => ["*.xaml"], :aliases => ["xml"], :mimetypes => ["application/xml+evoque"] if defined?(Pygments)
@@ -0,0 +1,11 @@
+# encoding: UTF-8
+
+module Markdownizer
+ class Engine < Rails::Engine
+ initializer "qa.load_app_instance_data" do |app|
+ app.class.configure do
+ config.paths["app/assets"] += Markdownizer::Engine.paths["app/assets"].existent
+ end
+ end
+ end if defined?(Rails)
+end

0 comments on commit 51658b0

Please sign in to comment.