Sha256: f2d124b451e3888a20241b0e0b0415f76b47ecdeef0c00ddd5488557b078cb6d

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

require 'refinery'
require 'awesome_nested_set'

module Refinery
  module Pages
    class Engine < Rails::Engine

      # Register cache sweeper, ensuring that we don't overwrite any other observers.
      config.autoload_paths += %W(#{config.root}/app/sweepers)
      (config.active_record.observers ||= []) << :page_sweeper

      config.after_initialize do
        Refinery::Plugin.register do |plugin|
          plugin.name = "refinery_pages"
          plugin.directory = "pages"
          plugin.version = %q{0.9.8}
          plugin.menu_match = /(refinery|admin)\/page(_part)?s(_dialogs)?$/
          plugin.activity = {
            :class => Page,
            :url_prefix => "edit",
            :title => "title",
            :created_image => "page_add.png",
            :updated_image => "page_edit.png"
          }
        end
      end

      initializer 'add marketable routes' do |app|
        app.routes_reloader.paths << File.expand_path('../pages/marketable_routes.rb', __FILE__)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.8 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.7 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.6 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.5 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.4 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.3 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.2 vendor/refinerycms/pages/lib/pages.rb
refinerycms-0.9.8.1 vendor/refinerycms/pages/lib/pages.rb