Sha256: 02f67f96567ecf69ed8c5f6f8b754104355f523329f943fdef95184045d037f7

Contents?: true

Size: 728 Bytes

Versions: 6

Compression:

Stored size: 728 Bytes

Contents

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

    class Engine < ::Rails::Engine

      config.after_initialize do
        ::Refinery::Plugin.register do |plugin|
          plugin.name = "refinery_dashboard"
          plugin.url = {:controller => '/admin/dashboard', :action => 'index'}
          plugin.menu_match = /(admin|refinery)\/(refinery_)?dashboard$/
          plugin.directory = "dashboard"
          plugin.version = %q{0.9.9}
          plugin.always_allow_access = true
          plugin.dashboard = true
        end
      end

    end
  end
end

::Refinery.engines << 'dashboard'

Version data entries

6 entries across 6 versions & 1 rubygems

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