Sha256: 7387ee4d37767ea465797dfd7e699fedd33621cd9a6f414eb1463f6be136add0
Contents?: true
Size: 923 Bytes
Versions: 7
Compression:
Stored size: 923 Bytes
Contents
module HydraHead require 'hydra-head/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3 require 'hydra-head/railtie' if defined? Rails 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
7 entries across 7 versions & 1 rubygems