Sha256: 0416dbd18ccbc6c1aea8c44a72afe9ea0f87e1355ab08fa409aa605db65e51f8
Contents?: true
Size: 915 Bytes
Versions: 35
Compression:
Stored size: 915 Bytes
Contents
require 'active_tools/action_pack/action_controller/path_helper/complex_helpers' require 'active_tools/action_pack/action_controller/path_helper/http_referer' module ActiveTools module ActionPack module ActionController module PathHelper extend ::ActiveSupport::Concern included do include ComplexHelpers helper_method :path?, :action?, :controller?, :current_action, :current_controller, :http_referer end def current_action request.path_parameters[:action] end def current_controller request.path_parameters[:controller] end def http_referer(environment = {}) @http_referer ||= HttpReferer.new(request, environment) end end end end module OnLoadActionController include ActionPack::ActionController::PathHelper end end
Version data entries
35 entries across 35 versions & 1 rubygems