view vendor/plugins/engines/.svn/text-base/boot.rb.svn-base @ 586:658cfb481618 feature_36

Order BibTeX entry types in a sensible order for presentation to user, instead of alphabetically by BibTeX name as previously (requires database re-seed). Provide a label for each entry type, and use it in the edit dropdown and show page. Omit duplicate entry type (conference) from edit dropdown. Use existing entry attribute labels in show_bibtex_fields.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 12 Aug 2011 13:15:05 +0100
parents 513646585e45
children
line wrap: on
line source
begin
  require 'rails/version'
  unless Rails::VERSION::MAJOR >= 2 && Rails::VERSION::MINOR >= 3 && Rails::VERSION::TINY >= 2
    raise "This version of the engines plugin requires Rails 2.3.2 or later!"
  end
end

require File.join(File.dirname(__FILE__), 'lib/engines')

# initialize Rails::Configuration with our own default values to spare users 
# some hassle with the installation and keep the environment cleaner

{ :default_plugin_locators => (defined?(Gem) ? [Rails::Plugin::GemLocator] : []).push(Engines::Plugin::FileSystemLocator),
  :default_plugin_loader => Engines::Plugin::Loader,
  :default_plugins => [:engines, :all] }.each do |name, default|    
  Rails::Configuration.send(:define_method, name) { default }
end