Class: RailsDevTweaks::GranularAutoload::Matchers::ForcedMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_dev_tweaks/granular_autoload/matchers/forced_matcher.rb

Instance Method Summary collapse

Instance Method Details

#call(request) ⇒ Object



3
4
5
# File 'lib/rails_dev_tweaks/granular_autoload/matchers/forced_matcher.rb', line 3

def call(request)
  request.headers['Force-Autoload'] || request.params.has_key?(:force_autoload)
end