Skip to content

Commit

Permalink
Add rails_engine
Browse files Browse the repository at this point in the history
  • Loading branch information
dchentech committed Apr 10, 2013
1 parent 350d5c1 commit 51658b0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts
1 change: 1 addition & 0 deletions lib/markdownizer.rb
Expand Up @@ -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)

Expand Down
11 changes: 11 additions & 0 deletions lib/markdownizer/rails_engine.rb
@@ -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.