Sha256: 3544b5f8b06e8bbc3ed1a8d43d1bd364befc6fd73b30ef0c87e375721bd1403f

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

require 'refinerycms-core'
require 'awesome_nested_set'
require 'globalize3'

module Refinery
  module Pages

    class << self
      attr_accessor :root
      def root
        @root ||= Pathname.new(File.expand_path('../../', __FILE__))
      end
    end

    class Engine < ::Rails::Engine

      config.to_prepare do
        require File.expand_path('../pages/tabs', __FILE__)
      end

      config.after_initialize do
        ::Refinery::Plugin.register do |plugin|
          plugin.name = "refinery_pages"
          plugin.directory = "pages"
          plugin.version = %q{0.9.9}
          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

::Refinery.engines << 'pages'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-pages-0.9.9.7 lib/refinerycms-pages.rb
refinerycms-pages-0.9.9.5 lib/refinerycms-pages.rb
refinerycms-pages-0.9.9.4 lib/refinerycms-pages.rb
refinerycms-pages-0.9.9.3 lib/refinerycms-pages.rb
refinerycms-pages-0.9.9.2 lib/refinerycms-pages.rb
refinerycms-pages-0.9.9.1 lib/refinerycms-pages.rb