Sha256: b56baf7fc95f7e9a41ac956e24ecf4604d636d6eac2f135fd155576305b1ad94

Contents?: true

Size: 992 Bytes

Versions: 12

Compression:

Stored size: 992 Bytes

Contents

Refinery::Plugin.register do |plugin|
  plugin.title = "Refinery"
  plugin.name = "refinery_core"
  plugin.description = "Core refinery plugin"
  plugin.version = 1.0
  plugin.hide_from_menu = true
  plugin.always_allow_access = true
  plugin.menu_match = /(refinery|admin)\/(refinery_core|base)$/
  # this tells refinery where this plugin is located on the filesystem and helps with urls.
  plugin.directory = directory
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

if (aai_config_file = Rails.root.join('config', 'acts_as_indexed_config.rb')).exist?
  require aai_config_file.to_s
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
refinerycms-0.9.7.11 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.10 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.9 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.8 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.7 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.6 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.5 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.4 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.3 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.2 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7.1 vendor/plugins/refinery/rails/init.rb
refinerycms-0.9.7 vendor/plugins/refinery/rails/init.rb