Sha256: 1e3690fef19fabd10af3be89975883219e191e807b9623409d23951612791a02

Contents?: true

Size: 789 Bytes

Versions: 2

Compression:

Stored size: 789 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.21}
          plugin.menu_match = /(refinery|admin)\/(refinery_)?settings$/
        end
      end
    end
  end
end

::Refinery.engines << 'settings'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-settings-0.9.9.22 lib/refinerycms-settings.rb
refinerycms-settings-0.9.9.21 lib/refinerycms-settings.rb