Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (29 sloc) 0.897 kb
if defined?(Bundler) and !defined?(FiltersSpam)
# this will tell the user what to do
load(File.expand_path('../../Gemfile', __FILE__))
require 'filters_spam'
end
module Refinery
module Blog
class Engine < Rails::Engine
initializer 'blog serves assets' do
app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
end
config.after_initialize do
Refinery::Plugin.register do |plugin|
plugin.name = "refinerycms_blog"
plugin.url = {:controller => '/admin/blog/posts', :action => 'index'}
plugin.menu_match = /^\/?(admin|refinery)\/blog\/?(posts|comments|categories)?/
plugin.activity = {
:class => BlogPost
}
end
end
end if defined?(Rails::Engine)
class << self
def version
%q{1.0.rc1}
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.