Sha256: b7ce0c7a87c379e559023394d55600f7c9779595663ad0a3570fa774728355f9
Contents?: true
Size: 874 Bytes
Versions: 31
Compression:
Stored size: 874 Bytes
Contents
module HydraHead require 'hydra-head/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3 require 'hydra-head/controller' require 'hydra-head/version' require 'hydra-head/routes' def self.version HydraHead::VERSION end def self.root @root ||= File.expand_path(File.dirname(File.dirname(__FILE__))) end # If you put this in your application's routes.rb, it will add the Hydra Head routes to the app. # The hydra:head generator puts this in routes.rb for you by default. # See {HydraHead::Routes} for information about how to modify which routes are generated. # @example # # in config/routes.rb # MyAppName::Application.routes.draw do # Blacklight.add_routes(self) # HydraHead.add_routes(self) # end def self.add_routes(router, options = {}) HydraHead::Routes.new(router, options).draw end end
Version data entries
31 entries across 31 versions & 1 rubygems