module Loaf::ControllerExtensions::ClassMethods
Public Instance Methods
Private Instance Methods
_filter_name()
click to toggle source
Choose available filter name
@api private
# File lib/loaf/controller_extensions.rb, line 37 def _filter_name respond_to?(:before_action) ? :before_action : :before_filter end
_normalize_name(name, instance)
click to toggle source
Convert breadcrumb name to string
@return [String]
@api private
# File lib/loaf/controller_extensions.rb, line 46 def _normalize_name(name, instance) case name when NilClass when Proc if name.arity == 1 instance.instance_exec(instance, &name) else instance.instance_exec(&name) end else name end end