refinerycms-blog/lib/refinery/blog/engine.rb
Jamie Winsor 7903bdfed2 refactor factories and add #show tests for posts controller
Do not want to cache classes, but do want to reload models after factory girl:

http://groups.google.com/group/factory_girl/browse_thread/thread/daa24556d90c31fc
http://stackoverflow.com/questions/5145165/associationtypemismatch-and-factorygirl

rails_autolink was removed from Rails 3.1 and abstracted to an external gem
fix display author name and post time on comment show
fix namespace for thanking and moderated flash notices
2011-09-04 14:35:03 -07:00

23 lines
652 B
Ruby

module Refinery
module Blog
class Engine < Rails::Engine
require 'rails_autolink'
config.to_prepare do
require 'refinery/blog/tabs'
end
initializer "init plugin", :after => :set_routes_reloader do |app|
Refinery::Plugin.register do |plugin|
plugin.pathname = root
plugin.name = "refinerycms_blog"
plugin.url = app.routes.url_helpers.refinery_admin_blog_posts_path
plugin.menu_match = /^\/refinery\/blog\/?(posts|comments|categories)?/
plugin.activity = {
:class => Refinery::BlogPost
}
end
end
end
end
end