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