lib/refinerycms-news.rb in refinerycms-news-1.2.0 vs lib/refinerycms-news.rb in refinerycms-news-2.0.0
- old
+ new
@@ -1,23 +2 @@
-require 'refinery'
-require File.expand_path('../news', __FILE__)
-
-module Refinery
- module News
-
- class Engine < Rails::Engine
- config.after_initialize do
- Refinery::Plugin.register do |plugin|
- plugin.name = "refinerycms_news"
- plugin.menu_match = /(admin|refinery)\/news(_items)?$/
- plugin.url = {:controller => '/admin/news_items', :action => 'index'}
- plugin.activity = {
- :class => NewsItem,
- :title => 'title',
- :url_prefix => 'edit'
- }
- end
- end
- end
-
- end
-end
\ No newline at end of file
+require 'refinery/news'