lib/blacklight/engine.rb in blacklight-6.19.2 vs lib/blacklight/engine.rb in blacklight-6.20.0

- old
+ new

@@ -5,11 +5,11 @@ require 'bootstrap-sass' require 'twitter-typeahead-rails' # BlacklightHelper is needed by all helpers, so we inject it - # into action view base here. + # into action view base here. initializer 'blacklight.helpers' do |app| ActionView::Base.send :include, BlacklightHelper end config.autoload_paths += %W( @@ -41,10 +41,14 @@ 'T Mobile' => 'tmomail.net', 'Alltel' => 'message.alltel.com', 'Cricket' => 'mms.mycricket.com' } + config.routes = OpenStruct.new + # Set identifier_constraint to enforce a format for the document identifiers + config.routes.identifier_constraint = /[\w-]+/ + config.bookmarks_http_method = :post - + config.email_regexp = defined?(Devise) ? Devise.email_regexp : /\A[^@\s]+@[^@\s]+\z/ end end