Sha256: a3c2d075c5abbd7bcb86bfe2ac04b69d75ce6d8ce4e7e5c5543b87f0eaeaea54

Contents?: true

Size: 705 Bytes

Versions: 5

Compression:

Stored size: 705 Bytes

Contents

Refinery::Plugin.register do |plugin|
  plugin.title = "Refinery"
  plugin.description = "Core refinery plugin"
  plugin.version = 1.0
  plugin.hide_from_menu = true
  plugin.always_allow_access = true
  plugin.menu_match = /admin\/(refinery_core|base)$/
end
require_dependency 'refinery/form_helpers'
require_dependency 'refinery/base_presenter'

[ Refinery.root.join("vendor", "plugins", "*", "app", "presenters").to_s,
  Rails.root.join("vendor", "plugins", "*", "app", "presenters").to_s,
  Rails.root.join("app", "presenters").to_s
].uniq.each do |path|
  Dir[path].each do |presenters_path|
    $LOAD_PATH << presenters_path
    ::ActiveSupport::Dependencies.load_paths << presenters_path
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
refinerycms-0.9.6.34 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.6.33 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.6.32 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.6.31 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.6.30 vendor/plugins/refinery/rails/init.rb