Sha256: e530733bade75d768d0dc368488b09a2045146e912ad3ccb16039cb87769bd8d
Contents?: true
Size: 689 Bytes
Versions: 8
Compression:
Stored size: 689 Bytes
Contents
module Galakei module Filter # :nodoc: all class Base attr_accessor :controller def self.condition?(controller) @instance ||= self.new @instance.controller = controller @instance.condition? end def self.filter(controller, &block) @instance ||= self.new @instance.controller = controller @instance.filter(&block) end def method_missing(m, *args) if controller.respond_to?(m) controller.send(m, *args) else super end end def html_content_type? response.content_type =~ %r{text/html|application/xhtml+xml} end end end end
Version data entries
8 entries across 8 versions & 1 rubygems