Sha256: 1f360461fccbea4a56af759e88df8ccbac5a0aef22c1e5ef20b3e8306ced154a

Contents?: true

Size: 786 Bytes

Versions: 6

Compression:

Stored size: 786 Bytes

Contents

require 'refinerycms-base'

module Refinery
  module Settings

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

    class Engine < ::Rails::Engine

      initializer "serve static assets" do |app|
        app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
      end

      config.after_initialize do
        ::Refinery::Plugin.register do |plugin|
          plugin.name = "refinery_settings"
          plugin.url = {:controller => "/admin/refinery_settings"}
          plugin.version = %q{0.9.9}
          plugin.menu_match = /(refinery|admin)\/(refinery_)?settings$/
        end
      end
    end
  end
end

::Refinery.engines << 'settings'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-settings-0.9.9.13 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.12 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.11 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.10 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.9 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.8 lib/refinerycms-settings.rb