Sha256: eaac2c9d059f77720d3c905d776eca0bb3cda12f81d32c1afbe44de0a5993968
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
module SimpleController class Base module Context extend ActiveSupport::Concern included do attr_reader :context end def call(action_name, params={}, context={}) @context ||= OpenStruct.new context super(action_name, params) end def call_action(*args) post_process super, context.processors || [] end protected def post_process(output, processors) output end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_controller-1.0.0 | lib/simple_controller/base/context.rb |