Sha256: 3e7694da9fa60a07dde08e82f19a099b3a92126fcd9304e9dcbe32d950cd7029

Contents?: true

Size: 576 Bytes

Versions: 11

Compression:

Stored size: 576 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-news-1.2.0 lib/refinerycms-news.rb
refinerycms-news-1.1.0 lib/refinerycms-news.rb
refinerycms-news-1.0.1 lib/refinerycms-news.rb
refinerycms-news-1.0 lib/refinerycms-news.rb
refinerycms-news-0.9.9.6 lib/refinerycms-news.rb
refinerycms-news-0.9.9.5 lib/refinerycms-news.rb
refinerycms-news-0.9.9.4 lib/refinerycms-news.rb
refinerycms-news-0.9.9.3 lib/refinerycms-news.rb
refinerycms-news-0.9.9.2 lib/refinerycms-news.rb
refinerycms-news-0.9.9.1 lib/refinerycms-news.rb
refinerycms-news-0.9.9 lib/refinerycms-news.rb