aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/abstract/base.rb
blob: c13953195633519a5263d5979c1602efad921346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module AbstractController
  class Base
    
    attr_internal :response_body
    attr_internal :response_obj
    cattr_accessor :logger
        
    def self.process(action)
      new.process(action)
    end
    
    def initialize
      self.response_obj = {}
    end
    
    def process(action)
      send(action)
      self.response_obj[:body] = self.response_body
      self
    end
    
  end
end